1FMA(3)                     Linux Programmer's Manual                    FMA(3)
2
3
4

NAME

6       fma, fmaf, fmal - floating-point multiply and add
7

SYNOPSIS

9       #include <math.h>
10
11       double fma(double x, double y, double z);
12       float fmaf(float x, float y, float z);
13       long double fmal(long double x, long double y, long double z);
14
15       Compile with -std=c99; link with -lm.
16

DESCRIPTION

18       The fma() function computes x * y + z.  The result is rounded according
19       to the rounding mode determined by the value of FLT_ROUNDS.  FLT_ROUNDS
20       indicates  the  implementation-defined rounding behaviour for floating-
21       point addition, and has one of the following values:
22
23       -1     The rounding mode is not determinable.
24
25       0      Rounding is towards 0.
26
27       1      Rounding is towards nearest number.
28
29       2      Rounding is towards positive infinity.
30
31       3      Rounding is towards negative infinity.
32
33       Other values represent machine-dependent, non-standard rounding modes.
34

CONFORMING TO

36       C99
37

SEE ALSO

39       fenv(3), remainder(3), remquo(3)
40
41
42
43                                  2002-07-27                            FMA(3)
Impressum