MicrOS
fma.c File Reference
#include "../math.h"

Functions

double fma (double x, double y, double z)
 Multiply-add. More...
 

Function Documentation

◆ fma()

double fma ( double  x,
double  y,
double  z 
)

Multiply-add.

The fma functions compute (x × y) + z, rounded as one ternary operation: they compute the value (as if) to infinite precision and round once to the result format, according to the current rounding mode. A range error may occur.

Parameters
xValue to be multiplied.
yValue to be multiplied.
zValue to be added.
Returns
The fma functions return (x × y) + z, rounded as one ternary operation.