59 #ifdef POK_NEEDS_LIBMATH
61 #include "namespace.h"
62 #include "math_private.h"
66 __weak_alias(cos, _cos)
81 if(ix <= 0x3fe921fb)
return __kernel_cos(x,z);
84 else if (ix>=0x7ff00000)
return x-x;
88 n = __ieee754_rem_pio2(x,y);
90 case 0:
return __kernel_cos(y[0],y[1]);
91 case 1:
return -__kernel_sin(y[0],y[1],1);
92 case 2:
return -__kernel_cos(y[0],y[1]);
94 return __kernel_sin(y[0],y[1],1);