miniblog.
← Back to all posts
Wilfred Hughes
Feb 9, 2016 at 20:00
The Surprising Subtleties of Zeroing a Register
https://randomascii.wordpress.com/2012/12/29/the-surprising-subtleties-of-zeroing-a-register/
(modern superscalar CPUs are like JITs, happy paths are not obvious)
The Surprising Subtleties of Zeroing a Register
Zeroing out a CPU register seems like the simplest and most basic operation imaginable, but in fact x86 CPUs contain a surprising amount of special logic to make this operation run smoothly. The mo…