32 #ifdef POK_NEEDS_LIBMATH
35 #include "math_private.h"
37 static const float one = 1.0, shuge = 1.0e37;
40 __ieee754_sinhf(
float x)
49 if(ix>=0x7f800000)
return x+x;
54 if (ix < 0x41b00000) {
56 if(shuge+x>one)
return x;
58 if(ix<0x3f800000)
return h*((float)2.0*t-t*t/(t+one));
59 return h*(t+t/(t+one));
63 if (ix < 0x42b17180)
return h*__ieee754_expf(fabsf(x));
67 w = __ieee754_expf((
float)0.5*fabsf(x));