Friday, January 18, 2008

Swap 2 values with XOR ?

#define SWAP(a, b) (((a) ^= (b)), ((b) ^= (a)), ((a) ^= (b)))

No comments:

Post a Comment