aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--math/libm-test.inc3
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a51ab12b3..041a6eb4f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2015-10-23 Joseph Myers <joseph@codesourcery.com>
+ * math/libm-test.inc (check_float_internal): Do not special-case
+ errors up to 0.5 ulp.
+
* math/auto-libm-test-in: Add more tests of log, log10, log1p and
log2.
* math/auto-libm-test-out: Regenerated.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 989d6aea6d..239587dc6a 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -834,8 +834,7 @@ check_float_internal (const char *test_name, FLOAT computed, FLOAT expected,
&& computed == 0.0 && expected == 0.0
&& signbit(computed) != signbit (expected))
ok = 0;
- else if ((ulps <= 0.5 && ulps <= max_valid_error)
- || (ulps <= max_ulp && !ignore_max_ulp))
+ else if (ulps <= max_ulp && !ignore_max_ulp)
ok = 1;
else
ok = 0;