static void swap(int *x, int *y) { int t = *x; *x = *y; *y = t; } #define SWAP(x, y) \ { int t = x; x = y; y = t; }