popcount

package
Version: v0.0.0-...-69de378 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package popcount implements several methods to get the number of bits set in an integer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopCount1

func PopCount1(x uint64) int

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

func PopCount2

func PopCount2(x uint64) int

PopCount2 is a second method using a loop

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL