Back to index

glibc  2.9
w_lgamma.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.


double __lgamma (double x)

Function Documentation

double __lgamma ( double  x)

Definition at line 29 of file w_lgamma.c.

#ifdef _IEEE_LIBM
       return __ieee754_lgamma_r(x,&signgam);
        double y;
       int local_signgam = 0;
        y = __ieee754_lgamma_r(x,&local_signgam);
       if (_LIB_VERSION != _ISOC_)
         /* ISO C99 does not define the global variable.  */
         signgam = local_signgam;
        if(_LIB_VERSION == _IEEE_) return y;
        if(!__finite(y)&&__finite(x)) {
                return __kernel_standard(x,x,15); /* lgamma pole */
                return __kernel_standard(x,x,14); /* lgamma overflow */
        } else
            return y;

Here is the call graph for this function: