benilla-re systems structs docs

___dtold

function · crt · primitive

Address
0x40ffcc · 182 bytes, up to 0x410081
Signature
void __cdecl (Ld10Real *out, double *value)
Meaning
Widens a double to the 80-bit real exactly, a subnormal normalized and -0 made +0
Confidence
verified, proof one
Name from
the community database (idb)
Finding
crt/decimal#widening-a-double
Test
crt::crt_dtold_difftest, crt::crt_sprintf_float_difftest

Finding: Widening a double in crt: decimal digits

___dtold gives the 80-bit real of a double exactly: the sign, the exponent plus 0x3c00, and the 52 fraction bits shifted up 11 under an explicit leading 1. Exponent 0x7ff becomes 0x7fff, the fraction kept, so a NaN keeps its quiet bit as the mantissa's second bit. A subnormal takes exponent 0x3c01 with no leading 1 and is shifted up until its top bit is set, the exponent falling one per shift. Both zeros become all zero bits: the sign of -0 is dropped.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.