3 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
4 long double coshl(long double x)
8 #elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
9 long double coshl(long double x)
13 struct{uint64_t m; uint16_t se; uint16_t pad;} i;
15 unsigned ex = u.i.se & 0x7fff;
25 if (ex < 0x3fff-1 || (ex == 0x3fff-1 && w < 0xb17217f7)) {
27 FORCE_EVAL(x + 0x1p120f);
31 return 1 + t*t/(2*(1+t));
34 /* |x| < log(LDBL_MAX) */
35 if (ex < 0x3fff+13 || (ex == 0x3fff+13 && w < 0xb17217f7)) {
40 /* |x| > log(LDBL_MAX) or nan */