popcount

package
v0.0.0-...-94c99f4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

reference used for popcount: https://arxiv.org/pdf/1611.07612.pdf another useful reference: https://graphics.stanford.edu/~seander/bithacks.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopCount

func PopCount(x uint64) int

popcount returns the population count (number of set bits) of x.

func PopCountClearRightmost

func PopCountClearRightmost(x uint64) int

func PopCountLoop

func PopCountLoop(x uint64) int

func PopCountShift

func PopCountShift(x uint64) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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