benilla-re systems structs docs

___strgtold12

function · crt · primitive

Address
0x4111f0 · 1185 bytes, up to 0x411690
Signature
int32_t __cdecl (Ld12Real *out, const char **end, const char *s, int32_t mult12, int32_t scale, int32_t decpt, int32_t implicit_e)
Meaning
Reads a decimal numeral into a 12-byte real and a power of ten; flags 4 for no digit, 1 and 2 for range
Confidence
verified, proof one
Name from
the community database (idb)
Finding
crt/strtod#the-numeral-scan
Test
crt::crt_strgtold12_difftest, crt::crt_strtod_difftest

Finding: The numeral scan in crt: reading numbers

___strgtold12(out, &end, s, mult12, scale, decpt, implicit_e), with its last four arguments 0, skips space, tab, newline and return, then reads an optional sign, digits with at most one . (a digit on either side), and an exponent after e, E, d or D: an optional sign and digits, held at 5201 once past 5200. The first 25 significant digits are kept; a further integer digit adds 1 to the power of ten and a further fraction digit is dropped. A sign after the mantissa ends the numeral. A numeral with no digit answers flags 4.

The derivation is in the doc.

Callers 5

Callees 3

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