Comment

Comment by nickysielicki

Popcount is easily recognized by llvm (and it’s actually mentioned in the article...)

In the case of the code you’ve posted, you’re shifting out the LSB before you check the bit, so it’s not quite right, but (in general) popcount is recognized and used when possible.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton