Print this page

        

*** 104,117 **** long double a, t, z, w; int *pt = (int *) &t, *px = (int *) &x; int i, j, hx, ix; t = 1.0; ! #if defined(_BIG_ENDIAN) ! hx = px[0]; ! #else XTOI(px, hx); #endif ix = hx & 0x7fffffff; if (ix < 0x3ffc4000) { if (ix < 0x3fc60000) if ((i = (int) x) == 0) --- 104,117 ---- long double a, t, z, w; int *pt = (int *) &t, *px = (int *) &x; int i, j, hx, ix; t = 1.0; ! #if defined(__i386) || defined(__amd64) XTOI(px, hx); + #else + hx = px[0]; #endif ix = hx & 0x7fffffff; if (ix < 0x3ffc4000) { if (ix < 0x3fc60000) if ((i = (int) x) == 0)
*** 125,138 **** return (one + z * (q1 + z * (q2 + z * (q3 + z * (q4 + z * (q5 + z * (q6 + z * (q7 + z * q8)))))))); } j = (ix + 0x400) & 0x7ffff800; i = (j - 0x3ffc4000) >> 11; ! #if defined(_BIG_ENDIAN) ! pt[0] = j; ! #else ITOX(j, pt); #endif if (hx > 0) x = y - (t - x); else x = (-y) - (t + x); --- 125,138 ---- return (one + z * (q1 + z * (q2 + z * (q3 + z * (q4 + z * (q5 + z * (q6 + z * (q7 + z * q8)))))))); } j = (ix + 0x400) & 0x7ffff800; i = (j - 0x3ffc4000) >> 11; ! #if defined(__i386) || defined(__amd64) ITOX(j, pt); + #else + pt[0] = j; #endif if (hx > 0) x = y - (t - x); else x = (-y) - (t + x);