BloombergLP::bdldfp::DecimalUtil::fma

fma overloads

Synopses

Declared in <bdldfp_decimalutil.h>

Same as the related overload above for fma.

static
Decimal128
fma(
    Decimal128 x,
    Decimal128 y,
    Decimal128 z);
» more...

Return x * y + z as a single rounded ternary operation.

static
Decimal32
fma(
    Decimal32 x,
    Decimal32 y,
    Decimal32 z);
» more...

Same as the related overload above for fma.

static
Decimal64
fma(
    Decimal64 x,
    Decimal64 y,
    Decimal64 z);
» more...

Return Value

x * y + z as a single rounded ternary operation

Parameters

NameDescription
xfirst multiplicand
ysecond multiplicand
zaddend