22 static const int32_t npio2_hw[] = {
23 0x3FF921FB, 0x400921FB, 0x4012D97C, 0x401921FB, 0x401F6A7A, 0x4022D97C,
24 0x4025FDBB, 0x402921FB, 0x402C463A, 0x402F6A7A, 0x4031475C, 0x4032D97C,
25 0x40346B9C, 0x4035FDBB, 0x40378FDB, 0x403921FB, 0x403AB41B, 0x403C463A,
26 0x403DD85A, 0x403F6A7A, 0x40407E4C, 0x4041475C, 0x4042106C, 0x4042D97C,
27 0x4043A28C, 0x40446B9C, 0x404534AC, 0x4045FDBB, 0x4046C6CB, 0x40478FDB,
28 0x404858EB, 0x404921FB,
42 zero = 0.00000000000000000000e+00,
43 half = 5.00000000000000000000e-01,
44 two24 = 1.67772160000000000000e+07,
45 invpio2 = 6.36619772367581382433e-01,
46 pio2_1 = 1.57079632673412561417e+00,
47 pio2_1t = 6.07710050650619224932e-11,
48 pio2_2 = 6.07710050630396597660e-11,
49 pio2_2t = 2.02226624879595063154e-21,
50 pio2_3 = 2.02226624871116645580e-21,
51 pio2_3t = 8.47842766036889956997e-32;
64 {y[0] = x; y[1] = 0;
return 0;}
70 y[1] = (z-y[0])-pio2_1t;
74 y[1] = (z-y[0])-pio2_2t;
81 y[1] = (z-y[0])+pio2_1t;
85 y[1] = (z-y[0])+pio2_2t;
96 if(n<32&&ix!=npio2_hw[n-1]) {
103 i = j-((high>>20)&0x7ff);
108 w = fn*pio2_2t-((t-r)-w);
111 i = j-((high>>20)&0x7ff);
116 w = fn*pio2_3t-((t-r)-w);
122 if(hx<0) {y[0] = -y[0]; y[1] = -y[1];
return -n;}
129 y[0]=y[1]=x-x;
return 0;
137 tx[i] = (double)((
int32_t)(z));
142 while(tx[nx-1]==zero) nx--;
144 if(hx<0) {y[0] = -y[0]; y[1] = -y[1];
return -n;}
#define GET_HIGH_WORD(i, d)
int32_t __ieee754_rem_pio2(double x, double *y)
#define SET_HIGH_WORD(d, v)
#define SET_LOW_WORD(d, v)
int __kernel_rem_pio2(double *x, double *y, int e0, int nx, int prec)
#define GET_LOW_WORD(i, d)