Technology Apr 22, 2026 · 1 min read

XOR'ing a register with itself is the idiom for zeroing it out. Why not sub?

Article URL: https://devblogs.microsoft.com/oldnewthing/20260421-00/?p=112247 Comments URL: https://news.ycombinator.com/item?id=47859861 Points: 32 # Comments: 10

HA
Hacker News
by ingve
XOR'ing a register with itself is the idiom for zeroing it out. Why not sub?
Back to Discover

Reading List