mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* math/test-misc.c (main): Test for pseudo denormal numbers on x86.
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
2000-12-03 Ulrich Drepper <drepper@redhat.com>
|
2000-12-03 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* math/test-misc.c (main): Test for pseudo denormal numbers on x86.
|
||||||
* sysdeps/i386/fpu/fpclassify.c: New file.
|
* sysdeps/i386/fpu/fpclassify.c: New file.
|
||||||
|
|
||||||
* sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
|
* sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
|
||||||
|
@ -144,5 +144,24 @@ main (void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __i386__
|
||||||
|
/* This is a test for the strange long doubles in x86 FPUs. */
|
||||||
|
{
|
||||||
|
union
|
||||||
|
{
|
||||||
|
char b[10];
|
||||||
|
long double d;
|
||||||
|
} u =
|
||||||
|
{ .b = { 0, 0, 0, 0, 0, 0, 0, 0x80, 0, 0 } };
|
||||||
|
|
||||||
|
if (fpclassify (u.d) != FP_NORMAL)
|
||||||
|
{
|
||||||
|
printf ("fpclassify (0x00008000000000000000) failed: %d (%Lg)\n",
|
||||||
|
fpclassify (u.d), u.d);
|
||||||
|
result = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user