Back to index

glibc  2.9
w_tgammaf.c File Reference
#include <math.h>
#include "math_private.h"

Go to the source code of this file.


float __tgammaf (float x)

Function Documentation

float __tgammaf ( float  x)

Definition at line 26 of file w_tgammaf.c.

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

       if(!__finitef(y)&&__finitef(x)) {
         if (x == (float)0.0)
           /* tgammaf pole */
           return (float)__kernel_standard((double)x,(double)x,150);
         else if(__floorf(x)==x&&x<(float)0.0)
           /* tgammaf domain */
           return (float)__kernel_standard((double)x,(double)x,141);
           /* tgammaf overflow */
           return (float)__kernel_standard((double)x,(double)x,140);
       return y;

Here is the call graph for this function: