As a particular example, it seems to make it impossible to implement https://en.wikipedia.org/wiki/XOR_linked_list …
-
-
-
@RichFelker Another case is a swap of pointers via xors. But are you sure this is an example of real code? -
@ch3root XOR linked list is a real-world need for implementing some things where you don't have space for 2 pointers. -
@ch3root In-place algorithms on data structures where you only have one modifiable pointer-size slot. -
@ch3root "XOR swap" on the other hand is cargo-cult-"optimization" BS.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.