aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-12-13 15:01:50 +0000
committerUlrich Drepper <drepper@redhat.com>1998-12-13 15:01:50 +0000
commit763babf874f0ea2b712dc688ba2c088d2378e5b6 (patch)
treeb7f333afd2a4674c3d8184ba24dc48f35dae9c1c /math
parenta3f4b50b6ae0c5321a50077decc078d31124e2f2 (diff)
downloadglibc-763babf874f0ea2b712dc688ba2c088d2378e5b6.tar
glibc-763babf874f0ea2b712dc688ba2c088d2378e5b6.tar.gz
glibc-763babf874f0ea2b712dc688ba2c088d2378e5b6.tar.bz2
glibc-763babf874f0ea2b712dc688ba2c088d2378e5b6.zip
Update.
1998-12-13 Andreas Jaeger <aj@arthur.rhein-neckar.de> * math/libm-test.c: Remove macro ISINF. Change all usages of ISINF to isinf.
Diffstat (limited to 'math')
-rw-r--r--math/libm-test.c26
1 files changed, 9 insertions, 17 deletions
diff --git a/math/libm-test.c b/math/libm-test.c
index b1452c2022..69246c5e11 100644
--- a/math/libm-test.c
+++ b/math/libm-test.c
@@ -155,14 +155,6 @@ typedef MATHTYPE (*mathfunc) (MATHTYPE);
__imag__ __retval = (imag); \
__retval; })
-
-#define ISINF(x) \
-(sizeof (x) == sizeof (float) \
- ? isinff (x) \
- : sizeof (x) == sizeof (double) \
- ? isinf (x) : isinfl (x))
-
-
/* Test if Floating-Point stack hasn't changed */
static void
fpstack_test (const char *test_name)
@@ -346,7 +338,7 @@ check_equal (MATHTYPE computed, MATHTYPE supplied, MATHTYPE eps, MATHTYPE * diff
int ret_value;
/* Both plus Infinity or both minus infinity. */
- if (ISINF (computed) && (ISINF (computed) == ISINF (supplied)))
+ if (isinf (computed) && (isinf (computed) == isinf (supplied)))
return 1;
if (isnan (computed) && isnan (supplied)) /* isnan works for all types */
@@ -731,7 +723,7 @@ check_isinfp (const char *test_name, MATHTYPE computed)
{
output_new_test (test_name);
test_exceptions (test_name, NO_EXCEPTION);
- output_isvalue (test_name, (ISINF (computed) == +1), computed);
+ output_isvalue (test_name, (isinf (computed) == +1), computed);
}
@@ -742,7 +734,7 @@ check_isinfp_ext (const char *test_name, MATHTYPE computed,
{
output_new_test (test_name);
test_exceptions (test_name, NO_EXCEPTION);
- output_isvalue_ext (test_name, (ISINF (computed) == +1), computed, parameter);
+ output_isvalue_ext (test_name, (isinf (computed) == +1), computed, parameter);
}
@@ -753,7 +745,7 @@ check_isinfp_exc (const char *test_name, MATHTYPE computed,
{
output_new_test (test_name);
test_exceptions (test_name, exception);
- output_isvalue (test_name, (ISINF (computed) == +1), computed);
+ output_isvalue (test_name, (isinf (computed) == +1), computed);
}
@@ -763,7 +755,7 @@ check_isinfn (const char *test_name, MATHTYPE computed)
{
output_new_test (test_name);
test_exceptions (test_name, NO_EXCEPTION);
- output_isvalue (test_name, (ISINF (computed) == -1), computed);
+ output_isvalue (test_name, (isinf (computed) == -1), computed);
}
@@ -775,7 +767,7 @@ check_isinfn_ext (const char *test_name, MATHTYPE computed,
{
output_new_test (test_name);
test_exceptions (test_name, NO_EXCEPTION);
- output_isvalue_ext (test_name, (ISINF (computed) == -1), computed, parameter);
+ output_isvalue_ext (test_name, (isinf (computed) == -1), computed, parameter);
}
#endif
@@ -786,7 +778,7 @@ check_isinfn_exc (const char *test_name, MATHTYPE computed,
{
output_new_test (test_name);
test_exceptions (test_name, exception);
- output_isvalue (test_name, (ISINF (computed) == -1), computed);
+ output_isvalue (test_name, (isinf (computed) == -1), computed);
}
@@ -5810,9 +5802,9 @@ basic_tests (void)
/* test if HUGE_VALx is ok */
x1 = CHOOSE (HUGE_VALL, HUGE_VAL, HUGE_VALF);
- check_bool ("isinf (HUGE_VALx) == +1", ISINF (x1) == +1);
+ check_bool ("isinf (HUGE_VALx) == +1", isinf (x1) == +1);
x1 = -CHOOSE (HUGE_VALL, HUGE_VAL, HUGE_VALF);
- check_bool ("isinf (-HUGE_VALx) == -1", ISINF (x1) == -1);
+ check_bool ("isinf (-HUGE_VALx) == -1", isinf (x1) == -1);
}