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:
Siddhesh Poyarekar 2020-12-23 13:53:34 +05:30
parent 84c202246b
commit b7f8815617
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -1,2 +0,0 @@
#include <sysdeps/i386/fpu/s_fpclassifyl.c>