| FMA(3) | Library Functions Manual | FMA(3) |
fma, fmaf,
fmal — floating
multiply-add
Math Library (libm, -lm)
#include <math.h>
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);
The
fma(),
fmaf()
and
fmal()
functions compute (x * y) + z, rounded as one ternary operation. The result
is rounded according to the current rounding mode.
The fma(), fmaf()
and fmal() functions return (x * y) + z, rounded as
one ternary operation.
The fma(), fmaf()
and fmal() functions conform to
ISO/IEC 9899:1999
(“ISO C99”).
| June 7, 2025 | Debian |