diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-05-17 19:01:27 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-05-17 19:01:27 +0000 |
commit | de407f79a20659fd11cc3b4e30ff9f1e349b5b93 (patch) | |
tree | e883039d95c2587e7463ccfed87b5851ca068be4 /math | |
parent | 8269107fe654ac2bb286c97ff874407ffc920d1f (diff) | |
download | glibc-de407f79a20659fd11cc3b4e30ff9f1e349b5b93.tar.gz glibc-de407f79a20659fd11cc3b4e30ff9f1e349b5b93.tar.xz glibc-de407f79a20659fd11cc3b4e30ff9f1e349b5b93.zip |
Don't handle ulps for integer tests in libm-test.inc.
Diffstat (limited to 'math')
-rw-r--r-- | math/libm-test.inc | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc index f5fabd327c..1d478ed8d2 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -734,19 +734,15 @@ static void check_int (const char *test_name, int computed, int expected, int max_ulp, int exceptions) { - int diff = computed - expected; int ok = 0; int errno_value = errno; test_exceptions (test_name, exceptions); test_errno (test_name, errno_value, exceptions); noTests++; - if (abs (diff) <= max_ulp) + if (computed == expected) ok = 1; - if (!ok) - print_ulps (test_name, diff); - if (print_screen (ok)) { if (!ok) @@ -768,19 +764,15 @@ static void check_long (const char *test_name, long int computed, long int expected, long int max_ulp, int exceptions) { - long int diff = computed - expected; int ok = 0; int errno_value = errno; test_exceptions (test_name, exceptions); test_errno (test_name, errno_value, exceptions); noTests++; - if (labs (diff) <= max_ulp) + if (computed == expected) ok = 1; - if (!ok) - print_ulps (test_name, diff); - if (print_screen (ok)) { if (!ok) @@ -834,19 +826,15 @@ check_longlong (const char *test_name, long long int computed, long long int max_ulp, int exceptions) { - long long int diff = computed - expected; int ok = 0; int errno_value = errno; test_exceptions (test_name, exceptions); test_errno (test_name, errno_value, exceptions); noTests++; - if (llabs (diff) <= max_ulp) + if (computed == expected) ok = 1; - if (!ok) - print_ulps (test_name, diff); - if (print_screen (ok)) { if (!ok) |