32 #ifdef POK_NEEDS_LIBMATH
35 #include "math_private.h"
38 one = 1.0000000000e+00,
39 C1 = 4.1666667908e-02,
40 C2 = -1.3888889225e-03,
41 C3 = 2.4801587642e-05,
42 C4 = -2.7557314297e-07,
43 C5 = 2.0875723372e-09,
44 C6 = -1.1359647598e-11;
47 __kernel_cosf(
float x,
float y)
54 if(((
int)x)==0)
return one;
57 r = z*(C1+z*(C2+z*(C3+z*(C4+z*(C5+z*C6)))));
59 return one - ((float)0.5*z - (z*r - x*y));
64 SET_FLOAT_WORD(qx,ix-0x01000000);
68 return a - (hz - (z*r-x*y));