__d128_to_unsigned_BCD

Purpose

Convert to Unsigned Binary Coded Decimal.

Converts the lower digits of a 128-bit decimal floating-point value to an Unsigned Packed Format.

Prototype

void __d128_to_unsigned_BCD (_Decimal128, unsigned long long *upper, unsigned long long *lower);

Parameters

upper
The address of the variable that will hold the upper digits of the result.
lower
The address of the variable that will hold the lower digits of the result.

Return value

Produces 32 decimal digits with no sign in a 128-bit result. Digits to the left are ignored. The higher 16 digits are stored in the parameter upper. The lower 16 digits are stored in the parameter lower.

Usage

You can use the __d128_shift_right function to access the digits to the left.