>>926
a = 1100
b = 0101

a ^= b => (a = 1001)
b ^= a => (b = 1100)
a ^= b => (a = 0101)

交換できてます。