diff options
| author | est31 <MTest31@outlook.com> | 2016-12-08 20:02:20 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2016-12-30 15:17:29 +0100 |
| commit | ca73affe8d060eaea9ff44950e758ed17fb4034a (patch) | |
| tree | 62654fa42f860438de400a51893cd7c710fc479b /src | |
| parent | 53ff50a94f083ec44bd6f6cb56ded6c52fcc7b8a (diff) | |
| download | rust-ca73affe8d060eaea9ff44950e758ed17fb4034a.tar.gz rust-ca73affe8d060eaea9ff44950e758ed17fb4034a.zip | |
Tidy
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcompiler_builtins/lib.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libcompiler_builtins/lib.rs b/src/libcompiler_builtins/lib.rs index 8d124b7e0aa..bd62b342bfd 100644 --- a/src/libcompiler_builtins/lib.rs +++ b/src/libcompiler_builtins/lib.rs @@ -572,10 +572,12 @@ pub mod reimpls { } if exponent < (<$fromty as FloatStuff>::MANTISSA_BITS) as i32 { (mantissa as $outty) - .wrapping_shr((<$fromty as FloatStuff>::MANTISSA_BITS as i32).wrapping_sub(exponent) as u32) + .wrapping_shr((<$fromty as FloatStuff>::MANTISSA_BITS as i32) + .wrapping_sub(exponent) as u32) } else { (mantissa as $outty) - .wrapping_shl(exponent.wrapping_sub(<$fromty as FloatStuff>::MANTISSA_BITS as i32) as u32) + .wrapping_shl(exponent.wrapping_sub( + <$fromty as FloatStuff>::MANTISSA_BITS as i32) as u32) } } } } @@ -605,10 +607,12 @@ pub mod reimpls { } let r = if exponent < (<$fromty as FloatStuff>::MANTISSA_BITS) as i32 { (mantissa as $outty) - .wrapping_shr((<$fromty as FloatStuff>::MANTISSA_BITS as i32).wrapping_sub(exponent) as u32) + .wrapping_shr((<$fromty as FloatStuff>::MANTISSA_BITS as i32) + .wrapping_sub(exponent) as u32) } else { (mantissa as $outty) - .wrapping_shl(exponent.wrapping_sub(<$fromty as FloatStuff>::MANTISSA_BITS as i32) as u32) + .wrapping_shl(exponent.wrapping_sub( + <$fromty as FloatStuff>::MANTISSA_BITS as i32) as u32) }; if sign >= 0.0 { r } else { r.unchecked_neg() } }} |
