29 #ifdef POK_NEEDS_LIBMATH
36 #include "math_private.h"
39 lgamma_r(
double x,
int *signgamp)
42 return __ieee754_lgamma_r(x,signgamp);
45 y = __ieee754_lgamma_r(x,signgamp);
46 if(_LIB_VERSION == _IEEE_)
return y;
47 if(!finite(y)&&finite(x)) {
48 if(floor(x)==x&&x<=0.0)
49 return __kernel_standard(x,x,15);
51 return __kernel_standard(x,x,14);