popcount

package
v0.0.0-...-8cd4330 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 0 Imported by: 0

README

Exercise 2.4 (P45)

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopCountShift

func PopCountShift(x uint64) int

PopCountShift returns the population count (number of set bits) of x by shifting.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL