mad Function

Computes the product of the first and second specified argument, then adds the third specified argument.

inline float mad(
   float _X,
   float _Y,
   float _Z
) restrict(amp);

inline double mad(
   double _X,
   double _Y,
   double _Z
) restrict(amp);

inline int mad(
   int _X,
   int _Y,
   int _Z
) restrict(amp);

inline unsigned int mad(
   unsigned int _X,
   unsigned int _Y,
   unsigned int _Z
) restrict(amp);

Parameters

  • _X
    The first specified argument.

  • _Y
    The second specified argument.

  • _Z
    The third specified argument.

Return Value

The result of _X * _Y + _Z.

Requirements

Header: amp.h

Namespace: Concurrency::direct3d

See Also

Reference

Concurrency::direct3d Namespace