3 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
5 #elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
6 /* invalid representations (top bit of u.i.m is wrong) are not handled */
7 int __fpclassifyl(long double x)
10 int e = u.i.se & 0x7fff;
12 return u.i.m ? FP_SUBNORMAL : FP_ZERO;
14 return u.i.m << 1 ? FP_NAN : FP_INFINITE;
17 #elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384
18 int __fpclassifyl(long double x)
20 union ldshape u = {x};
21 int e = u.i.se & 0x7fff;
23 return u.i2.lo | u.i2.hi ? FP_SUBNORMAL : FP_ZERO;
26 return u.i2.lo | u.i2.hi ? FP_NAN : FP_INFINITE;