aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/libm-test.inc5
-rw-r--r--math/s_nextafter.c6
2 files changed, 3 insertions, 8 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 0fe0f69..574654e 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -9553,10 +9553,7 @@ static const struct test_ff_f_data nextafter_test_data[] =
static void
nextafter_test (void)
{
-
- START (nextafter, 1);
- RUN_TEST_LOOP_ff_f (nextafter, nextafter_test_data, );
- END;
+ ALL_RM_TEST (nextafter, 1, nextafter_test_data, RUN_TEST_LOOP_ff_f, END);
}
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 */