Comment Comment by bsmith0 Yep my bad! I think flipping the order should work still though.The two links in the article:https://lemire.me/blog/2016/05/23/the-surprising-cleverness-...And the LLVM source indicate to me it only picks up on x&(x-1) pattern, which would miss the popcount optimization on code like mine. parent bsmith0 5 years ago
The two links in the article:
https://lemire.me/blog/2016/05/23/the-surprising-cleverness-...
And the LLVM source indicate to me it only picks up on x&(x-1) pattern, which would miss the popcount optimization on code like mine.