Export (0) Print
Expand All

mad Function

Performs an arithmetic multiply/add operation on three arguments: _X * _Y + _Z

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);

_X

Unsigned integer value

_Y

Unsigned integer value

_Z

Unsigned integer value

Returns _X * _Y + _Z

Header: amp.h

Namespace: Concurrency::direct3d

Show:
© 2014 Microsoft