3 ms·
Both clang and gcc have __builtin_popcnt variants.
by secondcoming 5y ago
Both clang and gcc have __builtin_popcnt variants.
- ncmncm 5y agoBut both will issue actual popcount instructions only if they have been assured the program will be run on a machine that implements the instruction, which is not the default on, in particular, amd64/x86_64.