29 #ifdef POK_NEEDS_LIBMATH
67 #include "math_private.h"
70 one = 1.00000000000000000000e+00,
71 C1 = 4.16666666666666019037e-02,
72 C2 = -1.38888888888741095749e-03,
73 C3 = 2.48015872894767294178e-05,
74 C4 = -2.75573143513906633035e-07,
75 C5 = 2.08757232129817482790e-09,
76 C6 = -1.13596475577881948265e-11;
79 __kernel_cos(
double x,
double y)
86 if(((
int)x)==0)
return one;
89 r = z*(C1+z*(C2+z*(C3+z*(C4+z*(C5+z*C6)))));
91 return one - (0.5*z - (z*r - x*y));
96 INSERT_WORDS(qx,ix-0x00200000,0);
100 return a - (hz - (z*r-x*y));