Back to index

glibc  2.9
Functions
w_lgamma_r.c File Reference
#include <math.h>
#include "math_private.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double __lgamma_r (double x, int *signgamp)

Function Documentation

double __lgamma_r ( double  x,
int signgamp 
)

Definition at line 28 of file w_lgamma_r.c.

{
#ifdef _IEEE_LIBM
       return __ieee754_lgamma_r(x,signgamp);
#else
        double y;
        y = __ieee754_lgamma_r(x,signgamp);
        if(_LIB_VERSION == _IEEE_) return y;
        if(!__finite(y)&&__finite(x)) {
            if(__floor(x)==x&&x<=0.0)
                return __kernel_standard(x,x,15); /* lgamma pole */
            else
                return __kernel_standard(x,x,14); /* lgamma overflow */
        } else
            return y;
#endif
}

Here is the call graph for this function: