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

Functions

double __ieee754_log (double x) double __ieee754_log(x) double x
 
 if (hx< 0x00100000)
 
 if (hx >=0x7ff00000)
 
 __HI (x)
 
 if (i > 0)
 

Variables

static const static double double ln2_hi = 6.93147180369123816490e-01
 
static const static double double ln2_lo = 1.90821492927058770002e-10
 
static const static double double two54 = 1.80143985094819840000e+16
 
static const static double double Lg1 = 6.666666666666735130e-01
 
static const static double double Lg2 = 3.999999999940941908e-01
 
static const static double double Lg3 = 2.857142874366239149e-01
 
static const static double double Lg4 = 2.222219843214978396e-01
 
static const static double double Lg5 = 1.818357216161805012e-01
 
static const static double double Lg6 = 1.531383769920937332e-01
 
static const static double double Lg7 = 1.479819860511658591e-01
 
static double zero = 0.0
 
int k
 
int hx = __HI(x)
 
int i = (hx + 0x95f64) & 0x100000
 
int j = 0x6b851 - hx
 
unsigned lx = __LO(x)
 
 f = x - 1.0
 
 s = f / (2.0 + f)
 
 dk = (double)k
 
 z = s * s
 
 w = z * z
 
 t1 = w * (Lg2 + w * (Lg4 + w * Lg6))
 
 t2 = z * (Lg1 + w * (Lg3 + w * (Lg5 + w * Lg7)))
 
 R = t2 + t1
 

Function Documentation

◆ __HI()

__HI ( x )

◆ __ieee754_log()

double __ieee754_log ( double x)

◆ if() [1/3]

if ( hx >= 0x7ff00000)

◆ if() [2/3]

if ( )

◆ if() [3/3]

if ( i ,
0  )

Variable Documentation

◆ dk

dk = (double)k

◆ f

f = x - 1.0

◆ hx

hx = __HI(x)

◆ i

hx & i = (hx + 0x95f64) & 0x100000

◆ j

j = 0x6b851 - hx

◆ k

k
Initial value:
{
double hfsq, f, s, z, R, w, t1, t2, dk
t2
Definition e_log.c:144
s
Definition e_log.c:137
t1
Definition e_log.c:143
f
Definition e_log.c:119
dk
Definition e_log.c:138
w
Definition e_log.c:141
R
Definition e_log.c:146
z
Definition e_log.c:139

◆ Lg1

const static double double Lg1 = 6.666666666666735130e-01
static

◆ Lg2

const static double double Lg2 = 3.999999999940941908e-01
static

◆ Lg3

const static double double Lg3 = 2.857142874366239149e-01
static

◆ Lg4

const static double double Lg4 = 2.222219843214978396e-01
static

◆ Lg5

const static double double Lg5 = 1.818357216161805012e-01
static

◆ Lg6

const static double double Lg6 = 1.531383769920937332e-01
static

◆ Lg7

const static double double Lg7 = 1.479819860511658591e-01
static

◆ ln2_hi

const static double double ln2_hi = 6.93147180369123816490e-01
static

◆ ln2_lo

const static double double ln2_lo = 1.90821492927058770002e-10
static

◆ lx

lx = __LO(x)

◆ R

R = t2 + t1

◆ s

s = f / (2.0 + f)

◆ t1

t1 = w * (Lg2 + w * (Lg4 + w * Lg6))

◆ t2

t2 = z * (Lg1 + w * (Lg3 + w * (Lg5 + w * Lg7)))

◆ two54

const static double double two54 = 1.80143985094819840000e+16
static

◆ w

w = z * z

◆ z

return s * z = s * s

◆ zero

double zero = 0.0
static