mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-09-14 14:42:26 +08:00
Merge branch 'main' of https://github.com/IRainman/fast_float
This commit is contained in:
commit
ac66935449
@ -311,6 +311,15 @@ parse_digits_until_19(UC const *&p, UC const *pend,
|
||||
mantissa = mantissa * 10 + static_cast<uint8_t>(*p - UC('0'));
|
||||
} while ((++p != pend) && (mantissa < minimal_nineteen_digit_integer));
|
||||
}
|
||||
#else
|
||||
template <typename UC>
|
||||
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
|
||||
parse_digits_until_19(UC const *&p, UC const *pend,
|
||||
am_mant_t &mantissa) noexcept {
|
||||
do {
|
||||
mantissa = mantissa * 10 + static_cast<uint8_t>(*p - UC('0'));
|
||||
} while ((++p != pend) && (mantissa < minimal_nineteen_digit_integer));
|
||||
}
|
||||
#endif
|
||||
|
||||
// Call this if chars might not be 8 digits.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user