BloombergLP::bdldfp::DecimalImpUtil::fma

Return x * y + z, rounded as one ternary operation.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
DecimalImpUtil::ValueType128
fma(
    ValueType128 x,
    ValueType128 y,
    ValueType128 z);

Return Value

x * y + z, rounded as one ternary operation

Parameters

NameDescription
xfirst multiplicand
ysecond multiplicand
zaddend