benilla-re systems structs docs

___mtold12

function · crt · primitive

Address
0x411129 · 199 bytes, up to 0x4111ef
Signature
void __cdecl (const char *digits, uint32_t count, Ld12Real *out)
Meaning
Makes digit values a 12-byte real by x * 10 + d in 96 bits, normalized from exponent 0x404e
Confidence
verified, proof two
Name from
the community database (idb)
Finding
crt/strtod#digits-to-a-12-byte-real
Test
crt::crt_strgtold12_difftest, crt::crt_strtod_difftest

Finding: Digits to a 12-byte real in crt: reading numbers

With 25 digits kept, the 24th is raised by 1 when it is 5 or more, whatever the 25th is, and the 25th is dropped with 1 added to the power. Trailing zero digits are dropped the same way. The digits become a 96-bit integer by x · 10 + d, shifted up until bit 79 is set, with the exponent 0x404e less the shifts. With the scale and point arguments 0, the power is the exponent, negated for -, plus the digit count's adjustment. Above 5200 the result is the infinity with flags 2, below -5200 zero with flags 1; otherwise ___multtenpow12(out, power, mult12) scales it. The sign is set last.

The derivation is in the doc.

Callers 1

Callees 2

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