50 #ifdef POK_NEEDS_LIBMATH
51 #include "math_private.h"
54 static const double one = 1.0, half=0.5, huge = 1.0e300;
57 __ieee754_cosh(
double x)
68 if(ix>=0x7ff00000)
return x*x;
74 if (ix<0x3c800000)
return w;
75 return one+(t*t)/(w+w);
79 if (ix < 0x40360000) {
80 t = __ieee754_exp(fabs(x));
85 if (ix < 0x40862E42)
return half*__ieee754_exp(fabs(x));
90 ((ix==0x408633ce)&&(lx<=(uint32_t)0x8fb9f87d))) {
91 w = __ieee754_exp(half*fabs(x));