This documentation is archived and is not being maintained.

fma Function

Compute (_X * _Y) + _Z, rounded as one ternary operation

inline float fma(
   float _X,
   float _Y,
   float _Z
) restrict(amp);
inline double fma(
   double _X,
   double _Y,
   double _Z
) restrict(amp);

_X

Floating-point value

_Y

Floating-point value

_Z

Floating-point value

Returns (_X * _Y) + _Z, rounded as one ternary operation

Header: amp_math.h

Namespace: Concurrency::precise_math

Show: