popcount

package
v0.0.0-...-5afa7de Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopCountByClearing

func PopCountByClearing(x uint64) int

clear rightmost non-zero bit

func PopCountByLookupTable

func PopCountByLookupTable(x uint64) int

PopCount returns the population count (number of set bits) of x. look-up table

func PopCountByLooping

func PopCountByLooping(x uint64) int

loop

func PopCountByShifting

func PopCountByShifting(x uint64) int

shifting

Types

This section is empty.

Jump to

Keyboard shortcuts

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