32 #ifdef POK_NEEDS_LIBMATH
35 #include "namespace.h"
36 #include "math_private.h"
40 __weak_alias(sinf, _sinf)
54 if(ix <= 0x3f490fd8)
return __kernel_sinf(x,z,0);
57 else if (ix>=0x7f800000)
return x-x;
61 n = __ieee754_rem_pio2f(x,y);
63 case 0:
return __kernel_sinf(y[0],y[1],1);
64 case 1:
return __kernel_cosf(y[0],y[1]);
65 case 2:
return -__kernel_sinf(y[0],y[1],1);
67 return -__kernel_cosf(y[0],y[1]);