32 #ifdef POK_NEEDS_LIBMATH
34 #include "math_private.h"
36 static const float huge = 1.0e30;
37 static const float one = 1.0, half=0.5;
40 __ieee754_coshf(
float x)
49 if(ix>=0x7f800000)
return x*x;
55 if (ix<0x24000000)
return w;
56 return one+(t*t)/(w+w);
60 if (ix < 0x41b00000) {
61 t = __ieee754_expf(fabsf(x));
66 if (ix < 0x42b17180)
return half*__ieee754_expf(fabsf(x));
70 w = __ieee754_expf(half*fabsf(x));