@@ -132,8 +132,9 @@ where
132132 // This doubles the number of correct binary digits in the approximation
133133 // with each iteration, so after three iterations, we have about 28 binary
134134 // digits of accuracy.
135- let mut correction: u32 ;
136- correction = negate_u32 ( ( ( reciprocal as u64 ) . wrapping_mul ( q31b as u64 ) >> 32 ) as u32 ) ;
135+
136+ let mut correction: u32 =
137+ negate_u32 ( ( ( reciprocal as u64 ) . wrapping_mul ( q31b as u64 ) >> 32 ) as u32 ) ;
137138 reciprocal = ( ( reciprocal as u64 ) . wrapping_mul ( correction as u64 ) as u64 >> 31 ) as u32 ;
138139 correction = negate_u32 ( ( ( reciprocal as u64 ) . wrapping_mul ( q31b as u64 ) >> 32 ) as u32 ) ;
139140 reciprocal = ( ( reciprocal as u64 ) . wrapping_mul ( correction as u64 ) as u64 >> 31 ) as u32 ;
@@ -342,8 +343,9 @@ where
342343 // This doubles the number of correct binary digits in the approximation
343344 // with each iteration, so after three iterations, we have about 28 binary
344345 // digits of accuracy.
345- let mut correction32: u32 ;
346- correction32 = negate_u32 ( ( ( recip32 as u64 ) . wrapping_mul ( q31b as u64 ) >> 32 ) as u32 ) ;
346+
347+ let mut correction32: u32 =
348+ negate_u32 ( ( ( recip32 as u64 ) . wrapping_mul ( q31b as u64 ) >> 32 ) as u32 ) ;
347349 recip32 = ( ( recip32 as u64 ) . wrapping_mul ( correction32 as u64 ) >> 31 ) as u32 ;
348350 correction32 = negate_u32 ( ( ( recip32 as u64 ) . wrapping_mul ( q31b as u64 ) >> 32 ) as u32 ) ;
349351 recip32 = ( ( recip32 as u64 ) . wrapping_mul ( correction32 as u64 ) >> 31 ) as u32 ;
@@ -359,16 +361,15 @@ where
359361 // We need to perform one more iteration to get us to 56 binary digits;
360362 // The last iteration needs to happen with extra precision.
361363 let q63blo = CastInto :: < u32 > :: cast ( b_significand << 11 . cast ( ) ) ;
362- let correction: u64 ;
363- let mut reciprocal: u64 ;
364- correction = negate_u64 (
364+
365+ let correction: u64 = negate_u64 (
365366 ( recip32 as u64 )
366367 . wrapping_mul ( q31b as u64 )
367368 . wrapping_add ( ( recip32 as u64 ) . wrapping_mul ( q63blo as u64 ) >> 32 ) ,
368369 ) ;
369370 let c_hi = ( correction >> 32 ) as u32 ;
370371 let c_lo = correction as u32 ;
371- reciprocal = ( recip32 as u64 )
372+ let mut reciprocal: u64 = ( recip32 as u64 )
372373 . wrapping_mul ( c_hi as u64 )
373374 . wrapping_add ( ( recip32 as u64 ) . wrapping_mul ( c_lo as u64 ) >> 32 ) ;
374375
0 commit comments