60 #ifdef POK_NEEDS_LIBMATH
63 #include "namespace.h"
64 #include "math_private.h"
68 __weak_alias(sin, _sin)
83 if(ix <= 0x3fe921fb)
return __kernel_sin(x,z,0);
86 else if (ix>=0x7ff00000)
return x-x;
90 n = __ieee754_rem_pio2(x,y);
92 case 0:
return __kernel_sin(y[0],y[1],1);
93 case 1:
return __kernel_cos(y[0],y[1]);
94 case 2:
return -__kernel_sin(y[0],y[1],1);
96 return -__kernel_cos(y[0],y[1]);