32 #ifdef POK_NEEDS_LIBMATH
34 #include "math_private.h"
36 static const float one = 1.0, huge = 1e30;
38 static const float zero = 0.0;
41 __ieee754_atanhf(
float x)
51 if(ix<0x31800000&&(huge+x)>zero)
return x;
55 t = (float)0.5*log1pf(t+t*x/(one-x));
57 t = (float)0.5*log1pf((x+x)/(one-x));
58 if(hx>=0)
return t;
else return -t;