1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Better distinguish between NaN/qNaN/sNaN.

This commit is contained in:
Thomas Schwinge
2013-02-28 17:12:25 +01:00
parent 64487e1264
commit 67e971f18f
12 changed files with 697 additions and 678 deletions

View File

@ -1074,7 +1074,7 @@ main (void)
}
}
/* Special NaNs in x86 long double. Test for scalbl. */
/* Special qNaNs in x86 long double. Test for scalbl. */
{
union
{
@ -1087,12 +1087,12 @@ main (void)
r = scalbl (u.d, 0.0);
if (!isnan (r))
{
puts ("scalbl(NaN, 0) does not return NaN");
puts ("scalbl (qNaN, 0) does not return NaN");
result = 1;
}
else if (memcmp (&r, &u.d, sizeof (double)) != 0)
{
puts ("scalbl(NaN, 0) does not return the same NaN");
puts ("scalbl (qNaN, 0) does not return the same NaN");
result = 1;
}
}