Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
e_exp.c File Reference

Functions

double __ieee754_exp (double x) double __ieee754_exp(x) double x
 
hxif (hx >=0x40862E42)
 
 if (hx > 0x3fd62e42)
 
else if (hx< 0x3e300000)
 
 if (k==0)
 

Variables

static const static double double one = 1.0
 
static const static double double halF [2] = {0.5,-0.5,}
 
static const static double double huge = 1.0e+300
 
static const static double double twom1000 = 9.33263618503218878990e-302
 
static const static double double o_threshold = 7.09782712893383973096e+02
 
static const static double double u_threshold = -7.45133219101941108420e+02
 
static const static double double ln2HI [2]
 
static const static double double ln2LO [2]
 
static const static double double invln2 = 1.44269504088896338700e+00
 
static const static double double P1 = 1.66666666666666019037e-01
 
static const static double double P2 = -2.77777777770155933842e-03
 
static const static double double P3 = 6.61375632143793436117e-05
 
static const static double double P4 = -1.65339022054652515390e-06
 
static const static double double P5 = 4.13813679705723846039e-08
 
int k
 
int xsb = (hx >> 31) & 1
 
unsigned hx = __HI(x)
 
 t = x * x
 
 c = x - t * (P1 + t * (P2 + t * (P3 + t * (P4 + t * P5))))
 
 else
 

Function Documentation

◆ __ieee754_exp()

double __ieee754_exp ( double  x)

◆ if() [1/4]

if ( hx  ,
0x3fd62e42   
)

◆ if() [2/4]

hx & if ( hx >=  0x40862E42)

◆ if() [3/4]

else if ( )

◆ if() [4/4]

if ( k  = = 0)

Variable Documentation

◆ c

c = x - t * (P1 + t * (P2 + t * (P3 + t * (P4 + t * P5))))

◆ else

else
Initial value:
{
__HI(y) += ((k + 1000) << 20)
double x double y
Definition e_atan2.c:58
int k
Definition e_exp.c:107
__HI(x)

◆ halF

const static double double halF[2] = {0.5,-0.5,}
static

◆ huge

const static double double huge = 1.0e+300
static

◆ hx

hx = __HI(x)

◆ invln2

const static double double invln2 = 1.44269504088896338700e+00
static

◆ k

else k
Initial value:
{
double y, hi, lo, c, t
T cLib_calcTimer(T *value)
Definition c_lib.h:74
t
Definition e_exp.c:148
c
Definition e_exp.c:149

◆ ln2HI

const static double double ln2HI[2]
static
Initial value:
={ 6.93147180369123816490e-01,
-6.93147180369123816490e-01,}

◆ ln2LO

const static double double ln2LO[2]
static
Initial value:
={ 1.90821492927058770002e-10,
-1.90821492927058770002e-10,}

◆ o_threshold

const static double double o_threshold = 7.09782712893383973096e+02
static

◆ one

const static double double one = 1.0
static

◆ P1

const static double double P1 = 1.66666666666666019037e-01
static

◆ P2

const static double double P2 = -2.77777777770155933842e-03
static

◆ P3

const static double double P3 = 6.61375632143793436117e-05
static

◆ P4

const static double double P4 = -1.65339022054652515390e-06
static

◆ P5

const static double double P5 = 4.13813679705723846039e-08
static

◆ t

t = x * x

◆ twom1000

return y * twom1000 = 9.33263618503218878990e-302
static

◆ u_threshold

const static double double u_threshold = -7.45133219101941108420e+02
static

◆ xsb

xsb = (hx >> 31) & 1