43 #ifdef POK_NEEDS_LIBMATH
46 #include "math_private.h"
50 ln2 = 6.93147180559945286227e-01;
53 __ieee754_acosh(
double x)
58 EXTRACT_WORDS(hx,lx,x);
61 }
else if(hx >=0x41b00000) {
65 return __ieee754_log(x)+ln2;
66 }
else if(((hx-0x3ff00000)|lx)==0) {
68 }
else if (hx > 0x40000000) {
70 return __ieee754_log(2.0*x-one/(x+__ieee754_sqrt(t-one)));
73 return log1p(t+sqrt(2.0*t+t*t));