#define swap1(x,y) {x = x ^ y; y = x ^ y; x = x ^ y;} #define swap2(x,y) {x = x + y; y = x - y; x = x - y;}