summaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu/s_nexttowardf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/fpu/s_nexttowardf.c')
-rw-r--r--sysdeps/i386/fpu/s_nexttowardf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sysdeps/i386/fpu/s_nexttowardf.c b/sysdeps/i386/fpu/s_nexttowardf.c
index 49651bed6f..8379eff8b8 100644
--- a/sysdeps/i386/fpu/s_nexttowardf.c
+++ b/sysdeps/i386/fpu/s_nexttowardf.c
@@ -61,10 +61,7 @@ float __nexttowardf(float x, long double y)
}
hy = hx&0x7f800000;
if(hy>=0x7f800000) {
- x = x+x; /* overflow */
- if (FLT_EVAL_METHOD != 0)
- /* Force conversion to float. */
- asm ("" : "+m"(x));
+ x = math_narrow_eval (x+x); /* overflow */
return x;
}
if(hy<0x00800000) {