popcount

package
v0.0.0-...-686c690 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package popcount ... Exercise 2.3: Rewrite PopCount to use a loop instead of a single expression. Compare the per- formance of the two versions. (Section 11.4 shows how to compare the performance of differ- ent implementations systematically.)

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 PopCountLoop

func PopCountLoop(x uint64) int

PopCountLoop use a loop instead of a single expression.

Types

This section is empty.

Jump to

Keyboard shortcuts

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