mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-24 12:25:35 +08:00
x86 long double: Support pseudo numbers in fpclassifyl
Also move sysdeps/i386/fpu/s_fpclassifyl.c to sysdeps/x86/fpu/s_fpclassifyl.c and remove sysdeps/x86_64/fpu/s_fpclassifyl.c Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
84c202246b
commit
b7f8815617
@ -34,6 +34,10 @@ __fpclassifyl (long double x)
|
||||
retval = FP_ZERO;
|
||||
else if (ex == 0 && (hx & 0x80000000) == 0)
|
||||
retval = FP_SUBNORMAL;
|
||||
/* Pseudo-normals, i.e. pseudo-zero, pseudo-infinity and un-normals. They
|
||||
behave like NaNs, so categorize them as such. */
|
||||
else if ((hx & 0x80000000) == 0)
|
||||
retval = FP_NAN;
|
||||
else if (ex == 0x7fff)
|
||||
retval = ((hx & 0x7fffffff) | lx) != 0 ? FP_NAN : FP_INFINITE;
|
||||
|
@ -1,2 +0,0 @@
|
||||
#include <sysdeps/i386/fpu/s_fpclassifyl.c>
|
||||
|
Loading…
Reference in New Issue
Block a user