News for hackers. Stuff that matters.
Re:The NSA Instruction (2019) by rcgorton on Friday June 11, 2021 @09:05AM (#27472768)
It is also incredibly useful for doing string scanning - look at strlen/strchr in various libc imp lementations
Re:The NSA Instruction (2019) by chrchang523 on Friday June 11, 2021 @10:43AM (#27474054)
Nitpick: it's the related "count trailing zeros" operation that is useful (in combination with movemask) there, not popcount itself.