154 int32_t jz,jx,jv,jp,jk,carry,
n,iq[20],
i,
j,
k,
m,q0,ih;
155 double z,fw,
f[20],fq[20],
q[20];
169 jv = (e0-3)/24;
if(jv<0) jv=0;
173 j = jv-jx; m = jx+jk;
174 for(i=0;i<=
m;i++,j++) f[i] = (j<0)?
zero : (double) ipio2[j];
176 SDL_memset(&f[m+1], 0,
sizeof (f) - ((m+1) *
sizeof (f[0])));
180 for (i=0;i<=jk;i++) {
181 for(j=0,fw=0.0;j<=jx;j++) fw +=
x[j]*f[jx+i-j];
188 for(i=0,j=jz,z=q[jz];j>0;i++,j--) {
194 SDL_memset(&iq[jz], 0,
sizeof (q) - (jz *
sizeof (iq[0])));
199 z -= 8.0*
floor(z*0.125);
204 i = (iq[jz-1]>>(24-q0)); n +=
i;
205 iq[jz-1] -= i<<(24-q0);
206 ih = iq[jz-1]>>(23-q0);
208 else if(q0==0) ih = iq[jz-1]>>23;
209 else if(z>=0.5) ih=2;
217 carry = 1; iq[
i] = 0x1000000-
j;
219 }
else iq[
i] = 0xffffff -
j;
224 iq[jz-1] &= 0x7fffff;
break;
226 iq[jz-1] &= 0x3fffff;
break;
238 for (i=jz-1;i>=jk;i--) j |= iq[i];
240 for(k=1;iq[jk-
k]==0;k++);
242 for(i=jz+1;i<=jz+
k;i++) {
243 f[jx+
i] = (double) ipio2[jv+i];
244 for(j=0,fw=0.0;j<=jx;j++) fw +=
x[j]*f[jx+i-j];
256 while(iq[jz]==0) { jz--;
SDL_assert(jz >= 0); q0-=24;}
270 q[
i] = fw*(double)iq[i]; fw*=
twon24;
275 for(fw=0.0,k=0;k<=jp&&k<=jz-
i;k++) fw +=
PIo2[k]*q[i+k];
279 SDL_memset(&fq[jz+1], 0,
sizeof (fq) - ((jz+1) *
sizeof (fq[0])));
286 for (i=jz;i>=0;i--) fw += fq[i];
287 y[0] = (ih==0)? fw: -fw;
292 for (i=jz;i>=0;i--) fw += fq[i];
293 y[0] = (ih==0)? fw: -fw;
295 for (i=1;i<=jz;i++) fw += fq[i];
296 y[1] = (ih==0)? fw: -fw;
309 for (fw=0.0,i=jz;i>=2;i--) fw += fq[i];
311 y[0] = fq[0];
y[1] = fq[1];
y[2] = fw;
313 y[0] = -fq[0];
y[1] = -fq[1];
y[2] = -fw;
GLint GLint GLint GLint GLint x
GLdouble GLdouble GLdouble GLdouble q
static const int init_jk[]
static const double two24
static const double twon24
static const double PIo2[]
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int int in j)
GLint GLint GLint GLint GLint GLint y
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
#define SDL_assert(condition)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int int int return Display Window Cursor return Display Window return Display Drawable GC int int unsigned int unsigned int return Display Drawable GC int int _Xconst char int return Display Drawable GC int int unsigned int unsigned int return Display return Display Cursor return Display GC return XModifierKeymap return char Display Window int return Display return Display Atom return Display Window XWindowAttributes return Display Window return Display XEvent Bool(*) XPointer return Display Window Bool unsigned int int int Window Cursor Time return Display Window int return KeySym return Display _Xconst char Bool return Display _Xconst char return XKeyEvent char int KeySym XComposeStatus return Display int int int XVisualInfo return Display Window int int return _Xconst char return Display XEvent return Display Drawable GC XImage int int int int unsigned int unsigned int return Display Window Window Window int int int int unsigned int return Display Window Window int int return Display Window unsigned int unsigned int return Display Window Bool long XEvent return Display GC unsigned long return Display Window int Time return Display Window Window return Display Window unsigned long return Display Window XSizeHints Display Colormap XColor int return char int XTextProperty return XFontStruct _Xconst char int int int int XCharStruct return Display Window return Display Time return Display Colormap return Display Window Window int int unsigned int unsigned int int int return Display Window int return XExtensionInfo Display char XExtensionHooks int XPointer return XExtensionInfo XExtensionInfo Display return Display return Display unsigned long Display GC Display char long Display xReply int Bool return Display Bool return Display int SDL_X11_XESetEventToWireRetType return Display Window Window Window Window unsigned int return Display XShmSegmentInfo return Display Drawable GC XImage int int int int unsigned int unsigned int Boo k)
#define SDL_arraysize(array)