@@ -69,23 +69,23 @@ long double tanl(long double x) { long double y[2], z = 0.0L; int n, ix; -#if defined(_LITTLE_ENDIAN) +#if defined(__i386) || defined(__amd64) int *px = (int *) &x; #endif /* trig(Inf or NaN) is NaN */ if (!finitel(x)) return x - x; /* High word of x. */ -#if defined(_BIG_ENDIAN) - ix = *(int *) &x; -#else +#if defined(__i386) || defined(__amd64) XTOI(px, ix); +#else + ix = *(int *) &x; #endif /* |x| ~< pi/4 */ ix &= 0x7fffffff; if (ix <= 0x3ffe9220)