diff --git a/src/float/div.rs b/src/float/div.rs index 910ec49c..d4cca06c 100644 --- a/src/float/div.rs +++ b/src/float/div.rs @@ -211,23 +211,16 @@ impl FloatDivision for f32 { /// targets. Not used by default as it requires performing more work during /// rounding and would hardly help on regular 32- or 64-bit targets. const C_HW: HalfRep = guess!(HalfRep); - - // 0x7504; } impl FloatDivision for f64 { - // const HALF_ITERATIONS: usize = 3; - /// HW is at least 32. Shifting into the highest bits if needed. - const C_HW: HalfRep = 0x7504F333 << (HalfRep::::BITS - 32); + const C_HW: HalfRep = guess!(HalfRep); } #[cfg(not(feature = "no-f16-f128"))] impl FloatDivision for f128 { - // const HALF_ITERATIONS: usize = 4; - - // const C_HW: HalfRep = 0x7504F333 << (HalfRep::::BITS - 32); - const C_HW: HalfRep = 0x7504f333f9de6108; + const C_HW: HalfRep = guess!(HalfRep); } fn div(a: F, b: F) -> F