int operators != and == when comparing to zero
This is a great question, but I think you’ve fallen victim to the compiler’s dependency analysis. The compiler only has to clear the high bits of eax once, and they remain clear for the second version. The second version would have to pay the price to xor eax, eax except that the compiler analysis proved … Read more