3 ms·
GCC 4.4 isn't very recent, but it generates a popcnt with -msse4.2. GCC 4.5, using popcnt on my Core-i7 860 takes the trivial loop mentioned using "Complement
by neckbeard 15y ago
GCC 4.4 isn't very recent, but it generates a popcnt with -msse4.2.
GCC 4.5, using popcnt on my Core-i7 860 takes the trivial loop mentioned using "Complement and Compare" from ~10.5s to ~7.5s