mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-09 11:16:45 +08:00
cleanup.
This commit is contained in:
parent
9a0fa4733c
commit
f556a6875f
@ -386,8 +386,8 @@ negative_digit_comp(bigint &real_digits, adjusted_mantissa am,
|
|||||||
am_pow_t const theor_exp = theor.power2;
|
am_pow_t const theor_exp = theor.power2;
|
||||||
|
|
||||||
// scale real digits and theor digits to be same power.
|
// scale real digits and theor digits to be same power.
|
||||||
am_pow_t const pow2_exp = theor_exp - real_exp;
|
auto const pow2_exp = theor_exp - real_exp;
|
||||||
am_pow_t pow5_exp = -real_exp;
|
auto const pow5_exp = -real_exp;
|
||||||
if (pow5_exp != 0) {
|
if (pow5_exp != 0) {
|
||||||
FASTFLOAT_ASSERT(theor_digits.pow5(pow5_exp));
|
FASTFLOAT_ASSERT(theor_digits.pow5(pow5_exp));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -254,7 +254,7 @@ using parse_options = parse_options_t<char>;
|
|||||||
|
|
||||||
namespace fast_float {
|
namespace fast_float {
|
||||||
template <typename To, typename From>
|
template <typename To, typename From>
|
||||||
constexpr fastfloat_really_inline To bit_cast(const From &from) noexcept {
|
fastfloat_really_inline constexpr To bit_cast(const From &from) noexcept {
|
||||||
#if FASTFLOAT_HAS_BIT_CAST
|
#if FASTFLOAT_HAS_BIT_CAST
|
||||||
return std::bit_cast<To>(from);
|
return std::bit_cast<To>(from);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user