# minimize diff in the crutch.

This commit is contained in:
IRainman 2025-10-21 21:14:58 +03:00
parent fe0bce5eb7
commit 5a378ed87f

View File

@ -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;