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

Functions

float fmaf (float x, float y, float z)
 Multiply-add. More...
 

Function Documentation

◆ fmaf()

float fmaf ( float  x,
float  y,
float  z 
)

Multiply-add.

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