#define BACKWARDS -1
static int direction = FORWARDS;
+/* Apparently AIX's math.h bogusly defines `nearest' as a function,
+ in violation of the ANSI C spec. */
+#undef nearest
+#define nearest n3arest
+
static int pindex=0, nearest=0;
static int flipped_at=0;
static int xoffset=0, yoffset=0;
}
r = rotation_bias + (int)(vertigo*zcc); MODULO(r, ROTS);
- xvals[t][j] = xoffset + width/2 +
+ xvals[t][j] = xoffset + (width>>1) +
(int)(xx * costab[r] - yy * sintab[r]);
maxx[t] = MAX(maxx[t], xvals[t][j]);
minx[t] = MIN(minx[t], xvals[t][j]);