3 ms·
__builtin_popcount() ... which gcc and clang will replace with best available. 'nuff said. Edit: or OnesCount() in Go.
by eqvinox 6y ago
__builtin_popcount()
... which gcc and clang will replace with best available.
'nuff said.
Edit: or OnesCount() in Go.