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

Functions

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

Function Documentation

◆ fmal()

long double fmal ( long double  x,
long double  y,
long double  z 
)

Multiply-add.

The fmal 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 fmal functions return (x × y) + z, rounded as one ternary operation.