We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c27c761 commit dc85c13Copy full SHA for dc85c13
crates/core_simd/tests/ops_impl/float_macros.rs
@@ -387,7 +387,7 @@ macro_rules! float_tests {
387
// all of the mantissa digits set to 1, pushed up to the MSB.
388
const ALL_MANTISSA_BITS: $int_scalar = ((1 << <$scalar>::MANTISSA_DIGITS) - 1);
389
const MAX_REPRESENTABLE_VALUE: $int_scalar =
390
- ALL_MANTISSA_BITS << (core::mem::size_of::<$scalar>() * 8 as usize - <$scalar>::MANTISSA_DIGITS as usize);
+ ALL_MANTISSA_BITS << (core::mem::size_of::<$scalar>() * 8 - <$scalar>::MANTISSA_DIGITS as usize - 1);
391
const VALUES: [$scalar; 16] = [
392
-0.0,
393
0.0,
0 commit comments