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 4d53359 commit 00ae2b7Copy full SHA for 00ae2b7
src/util/float_extended.rs
@@ -22,12 +22,9 @@ impl FloatExtended {
22
23
#[inline]
24
pub fn reduce(&mut self) {
25
- // Check to make sure that the mantissa is outside of the new bounds
26
- if self.mantissa < 0.5 || self.mantissa > 1.0 {
27
- let (temp_mantissa, added_exponent) = self.mantissa.frexp();
28
- self.mantissa = temp_mantissa;
29
- self.exponent += added_exponent;
30
- }
+ let (temp_mantissa, added_exponent) = self.mantissa.frexp();
+ self.mantissa = temp_mantissa;
+ self.exponent += added_exponent;
31
}
32
33
0 commit comments