diff options
| author | Igor null <m1el.2027@gmail.com> | 2019-05-13 12:14:03 +0300 |
|---|---|---|
| committer | Igor null <m1el.2027@gmail.com> | 2019-05-13 12:14:03 +0300 |
| commit | f8e5ff50c53f3bb15fb3ea4d1e8e8ecc21436b48 (patch) | |
| tree | a039b03352208183a6b5ab8dd1b3969550122476 /library/compiler-builtins | |
| parent | 047e8d625477f11e8881a011106846df1314f7e2 (diff) | |
| download | rust-f8e5ff50c53f3bb15fb3ea4d1e8e8ecc21436b48.tar.gz rust-f8e5ff50c53f3bb15fb3ea4d1e8e8ecc21436b48.zip | |
rem_pio2: actually return medium value for x ~<= 5pi/4
Diffstat (limited to 'library/compiler-builtins')
| -rw-r--r-- | library/compiler-builtins/libm/src/math/rem_pio2.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/compiler-builtins/libm/src/math/rem_pio2.rs b/library/compiler-builtins/libm/src/math/rem_pio2.rs index 285663ea2c0..186333e570d 100644 --- a/library/compiler-builtins/libm/src/math/rem_pio2.rs +++ b/library/compiler-builtins/libm/src/math/rem_pio2.rs @@ -85,7 +85,7 @@ pub(crate) fn rem_pio2(x: f64) -> (i32, f64, f64) { /* |x| ~<= 5pi/4 */ if (ix & 0xfffff) == 0x921fb { /* |x| ~= pi/2 or 2pi/2 */ - medium(x, ix); /* cancellation -- use medium case */ + return medium(x, ix); /* cancellation -- use medium case */ } if ix <= 0x4002d97c { /* |x| ~<= 3pi/4 */ |
