mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-09 11:16:45 +08:00
try to cleanup crutches: it's not needed anymore?
This commit is contained in:
parent
44606aea96
commit
c4fc2bab04
@ -1037,9 +1037,7 @@ inline constexpr am_mant_t
|
||||
binary_format<double>::max_mantissa_fast_path(am_pow_t power) {
|
||||
// caller is responsible to ensure that
|
||||
FASTFLOAT_ASSUME(power >= 0 && power <= 22);
|
||||
//
|
||||
// Work around clang bug https://godbolt.org/z/zedh7rrhc
|
||||
return (void)max_mantissa[0], max_mantissa[power];
|
||||
return max_mantissa[power];
|
||||
}
|
||||
|
||||
template <>
|
||||
@ -1047,9 +1045,7 @@ inline constexpr am_mant_t
|
||||
binary_format<float>::max_mantissa_fast_path(am_pow_t power) {
|
||||
// caller is responsible to ensure that
|
||||
FASTFLOAT_ASSUME(power >= 0 && power <= 10);
|
||||
//
|
||||
// Work around clang bug https://godbolt.org/z/zedh7rrhc
|
||||
return (void)max_mantissa[0], max_mantissa[power];
|
||||
return max_mantissa[power];
|
||||
}
|
||||
|
||||
template <>
|
||||
@ -1057,9 +1053,7 @@ inline constexpr double
|
||||
binary_format<double>::exact_power_of_ten(am_pow_t power) {
|
||||
// caller is responsible to ensure that
|
||||
FASTFLOAT_ASSUME(power >= 0 && power <= 22);
|
||||
//
|
||||
// Work around clang bug https://godbolt.org/z/zedh7rrhc
|
||||
return (void)powers_of_ten[0], powers_of_ten[power];
|
||||
return powers_of_ten[power];
|
||||
}
|
||||
|
||||
template <>
|
||||
@ -1067,9 +1061,7 @@ inline constexpr float
|
||||
binary_format<float>::exact_power_of_ten(am_pow_t power) {
|
||||
// caller is responsible to ensure that
|
||||
FASTFLOAT_ASSUME(power >= 0 && power <= 10);
|
||||
//
|
||||
// Work around clang bug https://godbolt.org/z/zedh7rrhc
|
||||
return (void)powers_of_ten[0], powers_of_ten[power];
|
||||
return powers_of_ten[power];
|
||||
}
|
||||
|
||||
template <>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user