__fltin2
function · crt · primitive
- Address
0x747560· 127 bytes, up to0x7475de- Signature
void * __cdecl (void *flt, const char *s, uint32_t length, int32_t scale, int32_t decpt)- Meaning
- Reads a numeral into a double with the flags 0x80 overflow, 0x100 underflow, 0x200 no digit
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- crt/strtod#strtod
- Test
crt::crt_strtod_difftest
Finding: strtod in crt: reading numbers
strtod(s, &end) skips blanks, 9 to 13 and space, and reads on with __fltin2. No digit
answers +0. An overflow, the scan's exponent above 5200 or the rounding's
infinity, answers the infinity of the sign of the first byte after the blanks and sets errno to 34 (ERANGE). An
underflow, the scan's exponent below -5200 or a result rounding below 2^-1022 (__ld12cvt's 2),
answers +0 for either sign with ERANGE. A scale ___ld12mul flushes to zero, from about
1e-4951 to the -5200 bound, leaves a zero real with the numeral's sign, answered as that zero,
errno untouched: -1e-5000 is -0. Otherwise it answers the rounded double: 6e23 reads as the
double below the nearest.
The derivation is in the doc.
Callers 1
- _strtod crt
Callees 2
- _ld12tod crt
- ___strgtold12 crt
Calls and jumps by a bare address, from tables/calls.tsv.