News for hackers. Stuff that matters.
Re:XOR'ing a register with itself is the idiom for zeroing i... by drob518 on Wednesday April 22, 2026 @08:54AM (#47862880)
Yea, that’s what immediately went through my head, too. XOR is ALWAYS going to be single cycle because it’s bit-parallel.
Re:XOR'ing a register with itself is the idiom for zeroing i... by Sharlin on Wednesday April 22, 2026 @05:13PM (#47869362)
And SUB is also always a single cycle on any practically useful architecture since the 70s. Theoretical archs where SUB might be slower than XOR don't matter.