Discover Packages
github.com/bbc/eng-golang-workshop
workspaces
betandr
src
andr.io
ch2
ex2_5
command
Version:
v0.0.0-...-94c99f4
Opens a new window with list of versions in this module.
Published: Dec 23, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
The expression `x&(x-1)` clears the rightmost non-zero bit of x. Write a version
of `PopCount` that counts bits by using this fact, and assess its performance.
Source Files
¶
Directories
¶
The expression `x&(x-1)` clears the rightmost non-zero bit of x.
The expression `x&(x-1)` clears the rightmost non-zero bit of x.
Click to show internal directories.
Click to hide internal directories.