benilla-re systems structs docs

Ld12Real

struct · crt · 12 bytes

Meaning
Holds a 12-byte real: a 16-bit extension, a 64-bit mantissa and the sign over a 15-bit exponent
Confidence
verified, proof one
Finding
crt/decimal#the-12-byte-real

Finding: The 12-byte real in crt: decimal digits

Three helpers work on the 96 bits of a 12-byte real as one integer, the low word first: 0x411070 adds two of them, the carry out of the top dword dropped; 0x4110ce shifts left by one and 0x4110fc right by one, a zero coming in. ___addl adds two dwords into a third and returns the carry.

The derivation is in the doc.

Fields 3

offsetsizetypenamemeaningconfidencefinding
0x00002uint16_textHolds the 16 bits below the mantissaverified, proof onecrt/decimal#the-12-byte-real
0x00028uint64_tmantissaHolds the 64-bit mantissaverified, proof onecrt/decimal#the-12-byte-real
0x000a2uint16_texponentHolds the sign bit over the exponent biased by 0x3fffverified, proof onecrt/decimal#the-12-byte-real

Globals of this type