mirror of git://sourceware.org/git/glibc.git
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;
|
retval = FP_ZERO;
|
||||||
else if (ex == 0 && (hx & 0x80000000) == 0)
|
else if (ex == 0 && (hx & 0x80000000) == 0)
|
||||||
retval = FP_SUBNORMAL;
|
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)
|
else if (ex == 0x7fff)
|
||||||
retval = ((hx & 0x7fffffff) | lx) != 0 ? FP_NAN : FP_INFINITE;
|
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