try to cleanup crutches: it's not needed anymore?

This commit is contained in:
IRainman 2026-01-14 13:57:15 +03:00
parent 44606aea96
commit c4fc2bab04

View File

@ -1037,9 +1037,7 @@ inline constexpr am_mant_t
binary_format<double>::max_mantissa_fast_path(am_pow_t power) { binary_format<double>::max_mantissa_fast_path(am_pow_t power) {
// caller is responsible to ensure that // caller is responsible to ensure that
FASTFLOAT_ASSUME(power >= 0 && power <= 22); FASTFLOAT_ASSUME(power >= 0 && power <= 22);
// return max_mantissa[power];
// Work around clang bug https://godbolt.org/z/zedh7rrhc
return (void)max_mantissa[0], max_mantissa[power];
} }
template <> template <>
@ -1047,9 +1045,7 @@ inline constexpr am_mant_t
binary_format<float>::max_mantissa_fast_path(am_pow_t power) { binary_format<float>::max_mantissa_fast_path(am_pow_t power) {
// caller is responsible to ensure that // caller is responsible to ensure that
FASTFLOAT_ASSUME(power >= 0 && power <= 10); FASTFLOAT_ASSUME(power >= 0 && power <= 10);
// return max_mantissa[power];
// Work around clang bug https://godbolt.org/z/zedh7rrhc
return (void)max_mantissa[0], max_mantissa[power];
} }
template <> template <>
@ -1057,9 +1053,7 @@ inline constexpr double
binary_format<double>::exact_power_of_ten(am_pow_t power) { binary_format<double>::exact_power_of_ten(am_pow_t power) {
// caller is responsible to ensure that // caller is responsible to ensure that
FASTFLOAT_ASSUME(power >= 0 && power <= 22); FASTFLOAT_ASSUME(power >= 0 && power <= 22);
// return powers_of_ten[power];
// Work around clang bug https://godbolt.org/z/zedh7rrhc
return (void)powers_of_ten[0], powers_of_ten[power];
} }
template <> template <>
@ -1067,9 +1061,7 @@ inline constexpr float
binary_format<float>::exact_power_of_ten(am_pow_t power) { binary_format<float>::exact_power_of_ten(am_pow_t power) {
// caller is responsible to ensure that // caller is responsible to ensure that
FASTFLOAT_ASSUME(power >= 0 && power <= 10); FASTFLOAT_ASSUME(power >= 0 && power <= 10);
// return powers_of_ten[power];
// Work around clang bug https://godbolt.org/z/zedh7rrhc
return (void)powers_of_ten[0], powers_of_ten[power];
} }
template <> template <>