#define SWAPm(a, b, c) (((a) == (b)) || (((a) ^= (b)), ((b) ^= (a)), ((a) ^= (c))))
// DEBUG printf("x: %d, data[%d]: %d, data[%d]: %d\n", x, x - 1, snip[x - 1], wd - x, snip[wd - x]);
void gp2x_hflip15(gp2x_rect *r) {
unsigned short *data=(unsigned short *)r->data, *snip = NULL;
unsigned...