Quote:
but that's dangerous practise, because like that a could overflow and produce unwanted results.
hm... at a first glance i think that it should work correctly even if an overflow happens.

Quote:
so why not just create an inline function or a macro performing this task?
XOR swap shouldn't be used anymore. modern optimizing compilers will produce a better solution automatically from the three variable swap.