These intrinsics perform the calculation result = a × b + c, incurring only a single rounding step.
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 processor.
If compiling for the Cortex-M4 processor, only fmaf() is
available.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.