Back to index

glibc  2.9
w_tgamma.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 __tgamma (double x)

Function Documentation

double __tgamma ( double  x)

Definition at line 28 of file w_tgamma.c.

        double y;
       int local_signgam;
       y = __ieee754_gamma_r(x,&local_signgam);
       if (local_signgam < 0) y = -y;
#ifdef _IEEE_LIBM
       return y;
       if(_LIB_VERSION == _IEEE_) return y;

       if(!__finite(y)&&__finite(x)) {
         if (x == 0.0)
           return __kernel_standard(x,x,50); /* tgamma pole */
         else if(__floor(x)==x&&x<0.0)
           return __kernel_standard(x,x,41); /* tgamma domain */
           return __kernel_standard(x,x,40); /* tgamma overflow */
       return y;

Here is the call graph for this function: