These intrinsics perform the following calculation, incurring
only a single rounding step:
result = a × b + c
Performing the calculation with a single rounding step, rather
than multiplying and then adding with two roundings, can result
in a better degree of accuracy.
Declared in math.h, the FMA intrinsics
are:
double fma(double a, double b, double c);
float fmaf(float a, float b, float c);
long double fmal(long double a, long double b, long double c);
Note
These intrinsics
are only available in C99 mode.
They are only supported for the Cortex-M4 processors.
If compiling for the Cortex-M4 processor, only fmaf() is
available.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.