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

Functions

double __kernel_cos (double x, double y) double __kernel_cos(x
 
 if (ix< 0x3e400000)
 
return a (hz -(z *r - x *y))
 

Variables

static const static double double one = 1.00000000000000000000e+00
 
static const static double double C1 = 4.16666666666666019037e-02
 
static const static double double C2 = -1.38888888888741095749e-03
 
static const static double double C3 = 2.48015872894767294178e-05
 
static const static double double C4 = -2.75573143513906633035e-07
 
static const static double double C5 = 2.08757232129817482790e-09
 
static const static double double C6 = -1.13596475577881948265e-11
 
double y double x
 
double y double y
 
int ix
 
 z = x * x
 
 r = z * (C1 + z * (C2 + z * (C3 + z * (C4 + z * (C5 + z * C6)))))
 
 else
 
 a = one - qx
 

Function Documentation

◆ __kernel_cos()

double __kernel_cos ( double  x,
double  y 
)

◆ a()

return a ( hz z *r - x *y)

◆ if()

if ( )

Variable Documentation

◆ a

a = one - qx

◆ C1

const static double double C1 = 4.16666666666666019037e-02
static

◆ C2

const static double double C2 = -1.38888888888741095749e-03
static

◆ C3

const static double double C3 = 2.48015872894767294178e-05
static

◆ C4

const static double double C4 = -2.75573143513906633035e-07
static

◆ C5

const static double double C5 = 2.08757232129817482790e-09
static

◆ C6

const static double double C6 = -1.13596475577881948265e-11
static

◆ else

else
Initial value:
{
if (ix > 0x3fe90000) {
qx = 0.28125;
} else {
__HI(qx) = ix - 0x00200000;
__LO(qx) = 0;
}
hz = 0.5 * z - qx
T cLib_calcTimer(T *value)
Definition c_lib.h:74
__LO(df)=0
__HI(x)
hz
Definition e_fmod.c:128
z
Definition k_cos.c:77
int ix
Definition k_cos.c:71

◆ ix

ix
Initial value:
{
double a, hz, z, r, qx
a
Definition k_cos.c:89
r
Definition k_cos.c:78

◆ one

const static double double one = 1.00000000000000000000e+00
static

◆ r

r = z * (C1 + z * (C2 + z * (C3 + z * (C4 + z * (C5 + z * C6)))))

◆ x

◆ y

◆ z

z = x * x