Section: Linux Programmer's Manual (3)
Return to Main Contents
fma, fmaf, fmal - floating-point multiply and add
double fma(double x, double y, double z);
float fmaf(float x, float y, float z);
long double fmal(long double x, long double y, long double z);
Compile with -std=c99; link with -lm.
x * y + z.
The result is rounded according to the
rounding mode determined by the value of FLT_ROUNDS.
FLT_ROUNDS indicates the implementation-defined rounding
behaviour for floating-point addition,
and has one of the following values:
The rounding mode is not determinable.
Rounding is towards 0.
Rounding is towards nearest number.
Rounding is towards positive infinity.
Rounding is towards negative infinity.
Other values represent machine-dependent, non-standard rounding modes.
- CONFORMING TO
- SEE ALSO
linux.jgfs.net manual pages