popcount

package module
v0.0.0-...-863800c Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: MIT Imports: 0 Imported by: 1

README

go-popcount

Build Status GoDoc

Description

PopCount implementation for Go. Using hardware POPCNT instruction if available it.

Installation

This package can be installed with the go get command:

go get github.com/hideo55/go-popcount

Documentation

API documentation

License

MIT License

Documentation

Overview

Package popcount is PopCount implementation for Go. Using hardware POPCNT instruction if available it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(x uint64) uint64

Count function counts number of non-zero bits in 64bit unsigned integer.

func CountSlice

func CountSlice(s []uint64) uint64

CountSlice function counts number of non-zero bits in slice of 64bit unsigned integer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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