mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user