diff options
Diffstat (limited to 'math/s_nextafter.c')
-rw-r--r-- | math/s_nextafter.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/math/s_nextafter.c b/math/s_nextafter.c index 7b026f0..28962e5 100644 --- a/math/s_nextafter.c +++ b/math/s_nextafter.c @@ -70,10 +70,8 @@ double __nextafter(double x, double y) } hy = hx&0x7ff00000; if(hy>=0x7ff00000) { - x = x+x; /* overflow */ - if (FLT_EVAL_METHOD != 0 && FLT_EVAL_METHOD != 1) - asm ("" : "+m"(x)); - return x; /* overflow */ + double u = x+x; /* overflow */ + math_force_eval (u); } if(hy<0x00100000) { double u = x*x; /* underflow */ |