__d64_shift_right, __d128_shift_right

Purpose

Shift Coefficient Right.

Shifts the coefficient of the parameter right.

Prototype

_Decimal64 __d64_shift_right (_Decimal64, unsigned long digits);

_Decimal128 __d128_shift_right (_Decimal128, unsigned long digits);

Parameters

digits
The number of digits to be shifted right. The shift count must be in the range 0 to 63; otherwise the result is undefined.

Return value

The sign and exponent are unchanged. The digits are shifted right.