29 #ifdef POK_NEEDS_LIBMATH
60 #include "math_private.h"
63 half = 5.00000000000000000000e-01,
64 S1 = -1.66666666666666324348e-01,
65 S2 = 8.33333333332248946124e-03,
66 S3 = -1.98412698298579493134e-04,
67 S4 = 2.75573137070700676789e-06,
68 S5 = -2.50507602534068634195e-08,
69 S6 = 1.58969099521155010221e-10;
72 __kernel_sin(
double x,
double y,
int iy)
79 {
if((
int)x==0)
return x;}
82 r = S2+z*(S3+z*(S4+z*(S5+z*S6)));
83 if(iy==0)
return x+v*(S1+z*r);
84 else return x-((z*(half*y-v*r)-y)-v*S1);