←back to thread

60 points hasheddan | 1 comments | | HN request time: 0.201s | source
Show context
bombcar ◴[] No.46234425[source]
Isn't this the instruction that apparently the NSA asked for?
replies(4): >>46234619 #>>46234765 #>>46234869 #>>46235536 #
1. pklausler ◴[] No.46234869[source]
It goes back to the CDC 6600 at least, and is most often seen as part of Hamming distance computation (pop(xor(x,y))). But it turns out to be really useful for other things (trailing zero count), and worth having in hardware since the software sequence is a ~dozen instructions for 64 bits.