mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-11-10 23:29:51 +08:00
latest try to fix compilation. After this I remove all outdated workflows completely.
This commit is contained in:
parent
97e5a8b7b1
commit
63aea712de
@ -390,8 +390,16 @@ parse_digits_until_19(char const *&p, char const *pend, am_mant_t &mantissa) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
template <typename UC, FASTFLOAT_ENABLE_IF(!std::is_same<UC, char>::value) = 0>
|
||||||
|
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<am_mant_t>(*p - UC('0'));
|
||||||
|
} while ((++p != pend) && (mantissa < minimal_nineteen_digit_integer));
|
||||||
|
}
|
||||||
|
#else
|
||||||
template <typename UC>
|
template <typename UC>
|
||||||
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
|
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
|
||||||
parse_digits_until_19(UC const *&p, UC const *pend,
|
parse_digits_until_19(UC const *&p, UC const *pend,
|
||||||
@ -400,6 +408,7 @@ parse_digits_until_19(UC const *&p, UC const *pend,
|
|||||||
mantissa = mantissa * 10 + static_cast<am_mant_t>(*p - UC('0'));
|
mantissa = mantissa * 10 + static_cast<am_mant_t>(*p - UC('0'));
|
||||||
} while ((++p != pend) && (mantissa < minimal_nineteen_digit_integer));
|
} while ((++p != pend) && (mantissa < minimal_nineteen_digit_integer));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Call this if chars might not be 8 digits.
|
// Call this if chars might not be 8 digits.
|
||||||
// Using this style (instead of is_made_of_eight_digits_fast() then
|
// Using this style (instead of is_made_of_eight_digits_fast() then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user