@@ -132,8 +132,9 @@ where
132
132
// This doubles the number of correct binary digits in the approximation
133
133
// with each iteration, so after three iterations, we have about 28 binary
134
134
// 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 ) ;
137
138
reciprocal = ( ( reciprocal as u64 ) . wrapping_mul ( correction as u64 ) as u64 >> 31 ) as u32 ;
138
139
correction = negate_u32 ( ( ( reciprocal as u64 ) . wrapping_mul ( q31b as u64 ) >> 32 ) as u32 ) ;
139
140
reciprocal = ( ( reciprocal as u64 ) . wrapping_mul ( correction as u64 ) as u64 >> 31 ) as u32 ;
@@ -342,8 +343,9 @@ where
342
343
// This doubles the number of correct binary digits in the approximation
343
344
// with each iteration, so after three iterations, we have about 28 binary
344
345
// 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 ) ;
347
349
recip32 = ( ( recip32 as u64 ) . wrapping_mul ( correction32 as u64 ) >> 31 ) as u32 ;
348
350
correction32 = negate_u32 ( ( ( recip32 as u64 ) . wrapping_mul ( q31b as u64 ) >> 32 ) as u32 ) ;
349
351
recip32 = ( ( recip32 as u64 ) . wrapping_mul ( correction32 as u64 ) >> 31 ) as u32 ;
@@ -359,16 +361,15 @@ where
359
361
// We need to perform one more iteration to get us to 56 binary digits;
360
362
// The last iteration needs to happen with extra precision.
361
363
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 (
365
366
( recip32 as u64 )
366
367
. wrapping_mul ( q31b as u64 )
367
368
. wrapping_add ( ( recip32 as u64 ) . wrapping_mul ( q63blo as u64 ) >> 32 ) ,
368
369
) ;
369
370
let c_hi = ( correction >> 32 ) as u32 ;
370
371
let c_lo = correction as u32 ;
371
- reciprocal = ( recip32 as u64 )
372
+ let mut reciprocal: u64 = ( recip32 as u64 )
372
373
. wrapping_mul ( c_hi as u64 )
373
374
. wrapping_add ( ( recip32 as u64 ) . wrapping_mul ( c_lo as u64 ) >> 32 ) ;
374
375
0 commit comments