3 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
4 long double modfl(long double x, long double *iptr)
13 #elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
14 #if LDBL_MANT_DIG == 64
16 #elif LDBL_MANT_DIG == 113
19 long double modfl(long double x, long double *iptr)
21 union ldshape u = {x};
22 int e = (u.i.se & 0x7fff) - 0x3fff;
27 /* no fractional part */
28 if (e >= LDBL_MANT_DIG-1) {
32 return s ? -0.0 : 0.0;
37 *iptr = s ? -0.0 : 0.0;
41 /* raises spurious inexact */
43 y = absx + TOINT - TOINT - absx;
46 return s ? -0.0 : 0.0;