Back to index

glibc  2.9
Functions | Variables
w_exp.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 __exp (double x)

Variables

static double o_threshold = 7.09782712893383973096e+02
static double u_threshold = -7.45133219101941108420e+02

Function Documentation

double __exp ( double  x)

Definition at line 35 of file w_exp.c.

{
#ifdef _IEEE_LIBM
       return __ieee754_exp(x);
#else
       double z;
       z = __ieee754_exp(x);
       if(_LIB_VERSION == _IEEE_) return z;
       if(__finite(x)) {
           if(x>o_threshold)
               return __kernel_standard(x,x,6); /* exp overflow */
           else if(x<u_threshold)
               return __kernel_standard(x,x,7); /* exp underflow */
       }
       return z;
#endif
}

Here is the call graph for this function:


Variable Documentation

double o_threshold = 7.09782712893383973096e+02 [static]

Definition at line 29 of file w_exp.c.

double u_threshold = -7.45133219101941108420e+02 [static]

Definition at line 30 of file w_exp.c.