logoalt Hacker News

Validarklast Thursday at 5:02 PM0 repliesview on HN

I guess it depends how many different compilers you are targeting but generally speaking, compilers look for trivial implementations of popcount and can replace it with the single instruction.

However, as someone already mentioned, this is not equivalent to a pair of popcounts.