Documentation
¶
Overview ¶
Write a version of `PopCount` that counts bits by shifting its argument through 64 bit positions, testing the rightmost bit each time. Compare its performance to the table-lookup version.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByShifting ¶
ByShifting returns the population count (number of set bits) of x by shifting.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.