32 #ifdef POK_NEEDS_LIBMATH
36 #include "math_private.h"
39 one = 1.0000000000e+00,
40 ln2 = 6.9314718246e-01,
41 huge= 1.0000000000e+30;
50 if(ix>=0x7f800000)
return x+x;
52 if(huge+x>one)
return x;
55 w = __ieee754_logf(fabsf(x))+ln2;
56 }
else if (ix>0x40000000) {
58 w = __ieee754_logf((
float)2.0*t+one/(__ieee754_sqrtf(x*x+one)+t));
61 w =log1pf(fabsf(x)+t/(one+__ieee754_sqrtf(one+t)));
63 if(hx>0)
return w;
else return -w;