aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-07-16 21:31:43 +0000
committerUlrich Drepper <drepper@redhat.com>2001-07-16 21:31:43 +0000
commitba3752d5322448ab54b71c82e63a09542042a3b6 (patch)
tree7d0abe72b771849f27327fbbeb08c2260662e0a3 /math
parent778e0ef71de6430ca6af4410453e675bd96b040f (diff)
downloadglibc-ba3752d5322448ab54b71c82e63a09542042a3b6.zip
glibc-ba3752d5322448ab54b71c82e63a09542042a3b6.tar.gz
glibc-ba3752d5322448ab54b71c82e63a09542042a3b6.tar.bz2
Update.
2001-07-16 Andreas Schwab <schwab@suse.de> * sysdeps/posix/spawni.c: Fix typo when iterating over signal numbers. 2001-07-16 Andreas Schwab <schwab@suse.de> * math/libm-test.inc (check_float_internal): Fix sign bit test of infinities. 2001-07-16 Jakub Jelinek <jakub@redhat.com> * sysdeps/i386/fpu/e_expl.c (__ieee754_expl): Make it PIC friendly.
Diffstat (limited to 'math')
-rw-r--r--math/libm-test.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index bacd8d9..118f00a 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -460,8 +460,8 @@ check_float_internal (const char *test_name, FLOAT computed, FLOAT expected,
else if (isinf (computed) && isinf (expected))
{
/* Test for sign of infinities. */
- if (((exceptions & IGNORE_ZERO_INF_SIGN) == 0)
- && (isinf (computed) != isinf (expected)))
+ if ((exceptions & IGNORE_ZERO_INF_SIGN) == 0
+ && signbit (computed) != signbit (expected))
{
ok = 0;
printf ("infinity has wrong sign.\n");
@@ -482,9 +482,9 @@ check_float_internal (const char *test_name, FLOAT computed, FLOAT expected,
ulp = diff / FUNC(ldexp) (1.0, FUNC(ilogb) (expected) - MANT_DIG);
set_max_error (ulp, curr_max_error);
print_diff = 1;
- if (((exceptions & IGNORE_ZERO_INF_SIGN) == 0)
- && (computed == 0.0 && expected == 0.0
- && signbit(computed) != signbit (expected)))
+ if ((exceptions & IGNORE_ZERO_INF_SIGN) == 0
+ && computed == 0.0 && expected == 0.0
+ && signbit(computed) != signbit (expected))
ok = 0;
else if (ulp == 0.0 || (ulp <= max_ulp && !ignore_max_ulp))
ok = 1;