__cbcdtd

Purpose

Convert Binary Coded Decimal To Declets.

The low-order 24 bits of each word of the source contain six, 4-bit BCD fields that are converted to two declets; each set of the two declets is placed into the low-order 20 bits of the corresponding word in the result. The high-order 12 bits in each word of the result are set to 0. If a 4-bit BCD field has a value greater than 9, the results are undefined.

Prototype

long long __cdtbcd (long long);

Usage

Valid only when -qarch is set to target POWER7 processors.