3 ms·
I did some experimentation with popcnt in C++ six years ago and was impressed to find that the intrinsic in gcc was faster than the best inline assembly I could
by bobbyi_settv 9y ago
I did some experimentation with popcnt in C++ six years ago and was impressed to find that the intrinsic in gcc was faster than the best inline assembly I could come up with using the popcnt instruction:
https://github.com/bobbyi/Fast-Bit-Counting https://github.com/bobbyi/Fast-Bit-Counting