News for hackers. Stuff that matters.
Re:Principle of Least Astonishment by juped on Monday April 06, 2020 @03:09PM (#22796792)
xor reg, reg is the best because it's such an ancient idiom that processors recognize it as a zeroing idiom, enabling some processor-level optimizations.
Re:Principle of Least Astonishment by saagarjha on Monday April 06, 2020 @04:39PM (#22797583)
Now you need to decide whether to use opcode 0x31 or 0x33…
Re:Principle of Least Astonishment by juped on Tuesday April 07, 2020 @05:15AM (#22801610)
Which one weighs less?
Re:Principle of Least Astonishment by saagarjha on Wednesday April 08, 2020 @05:57AM (#22811534)
0x33 I think, by a minuscule amount, since it has fewer “on” bits?