__d64_insert_biased_exponent, __d128_insert_biased_exponent

Purpose

Insert Biased Exponent

Replaces the exponent of a decimal floating-point value.

Prototype

_Decimal64 __d64_insert_biased_exponent (_Decimal64, long exponent);

_Decimal128 __d128_insert_biased_exponent (_Decimal128, long exponent);

Parameters

exponent
The exponent value to be applied to the first parameter. For infinity, quiet NaN and signalling NaN, use one of the compile-time constant values or macros listed in Table 1.

For finite values, the result is DFP_BIASED_EXPONENT_FINITE plus the exponent bias (398 for _Decimal64, 6176 for _Decimal128) plus the desired exponent.