32 #ifdef POK_NEEDS_LIBMATH
35 #include "math_private.h"
37 one = 1.0000000000e+00,
38 pio4 = 7.8539812565e-01,
39 pio4lo= 3.7748947079e-08,
57 __kernel_tanf(
float x,
float y,
int iy)
65 if((ix|(iy+1))==0)
return one/fabsf(x);
66 else return (iy==1)? x: -one/x;
70 if(hx<0) {x = -x; y = -y;}
81 r = T[1]+w*(T[3]+w*(T[5]+w*(T[7]+w*(T[9]+w*T[11]))));
82 v = z*(T[2]+w*(T[4]+w*(T[6]+w*(T[8]+w*(T[10]+w*T[12])))));
84 r = y + z*(s*(r+v)+y);
89 return (
float)(1-((hx>>30)&2))*(v-(
float)2.0*(x-(w*w/(w+v)-r)));
99 SET_FLOAT_WORD(z,i&0xfffff000);
101 t = a = -(float)1.0/w;
103 SET_FLOAT_WORD(t,i&0xfffff000);