2013-05-17 Joseph Myers <joseph@codesourcery.com>
+ * math/libm-test.inc (check_int): Expect result to be exactly
+ equal to expected value and do not handle ulps.
+ (check_long): Likewise.
+ (check_longlong): Likewise.
+
* math/libm-test.inc (ceil_test_data): Test for "inexact"
exceptions.
(cimag_test_data): Likewise.
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)
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)
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)