Merge pull request rust-lang/libm#287 from keram88/master
This commit is contained in:
commit
f3dc12e97f
2 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ pub fn nextafter(x: f64, y: f64) -> f64 {
|
|||
ux_i += 1;
|
||||
}
|
||||
|
||||
let e = ux_i.wrapping_shr(52 & 0x7ff);
|
||||
let e = ux_i >> 52 & 0x7ff;
|
||||
// raise overflow if ux.f is infinite and x is finite
|
||||
if e == 0x7ff {
|
||||
force_eval!(x + x);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ pub fn nextafterf(x: f32, y: f32) -> f32 {
|
|||
ux_i += 1;
|
||||
}
|
||||
|
||||
let e = ux_i.wrapping_shr(0x7f80_0000_u32);
|
||||
let e = ux_i & 0x7f80_0000_u32;
|
||||
// raise overflow if ux_f is infinite and x is finite
|
||||
if e == 0x7f80_0000_u32 {
|
||||
force_eval!(x + x);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue