3 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
5 #elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
6 int __fpclassifyl(long double x)
8 union ldshape u = { x };
11 if (u.bits.m >> 63) return FP_NAN;
12 else if (u.bits.m) return FP_SUBNORMAL;
16 return u.bits.m & (uint64_t)-1>>1 ? FP_NAN : FP_INFINITE;
17 return u.bits.m & (uint64_t)1<<63 ? FP_NORMAL : FP_NAN;
19 #elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384
20 int __fpclassifyl(long double x)
22 union ldshape u = { x };
25 return u.bits.mlo | u.bits.mhi ? FP_SUBNORMAL : FP_ZERO;
27 return u.bits.mlo | u.bits.mhi ? FP_NAN : FP_INFINITE;