mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
# minimize diff in the crutch.
This commit is contained in:
parent
fe0bce5eb7
commit
5a378ed87f
@ -378,8 +378,6 @@ inline FASTFLOAT_CONSTEXPR20 adjusted_mantissa negative_digit_comp(
|
||||
bigint &real_digits = bigmant;
|
||||
am_pow_t const &real_exp = exponent;
|
||||
|
||||
T b;
|
||||
{
|
||||
// get the value of `b`, rounded down, and get a bigint representation of
|
||||
// b+h
|
||||
adjusted_mantissa am_b = am;
|
||||
@ -388,12 +386,12 @@ inline FASTFLOAT_CONSTEXPR20 adjusted_mantissa negative_digit_comp(
|
||||
round<T>(am_b, [](adjusted_mantissa &a, am_pow_t shift) {
|
||||
round_down(a, shift);
|
||||
});
|
||||
T b;
|
||||
to_float(
|
||||
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
|
||||
false,
|
||||
#endif
|
||||
am_b, b);
|
||||
}
|
||||
adjusted_mantissa theor = to_extended_halfway(b);
|
||||
bigint theor_digits(theor.mantissa);
|
||||
am_pow_t theor_exp = theor.power2;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user