Tag Archives: XOR swap

The Old XOR Switcheroo

Swap two binary integers, without using a temporary variable. Not magic — XOR. Continue reading

Posted in Algorithms, Assembly, Coding, Digital, Math | Tagged , , , | Leave a comment