onescount

package
v0.0.0-...-2f611ba Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

References: http://www.hackersdelight.org/hdcodetxt/pop.c.txt http://www.dalkescientific.com/writings/diary/archive/2008/07/03/hakmem_and_other_popcounts.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicTableTest

func BasicTableTest(t *testing.T, onesCountFuncs *OnesCountFuncs)

func NaiveTest

func NaiveTest(t *testing.T, onesCountFunc func(uint) int)

func NaiveTest15

func NaiveTest15(t *testing.T, onesCount15Func func(uint16) int)

func NaiveTest16

func NaiveTest16(t *testing.T, onesCount16Func func(uint16) int)

func NaiveTest32

func NaiveTest32(t *testing.T, onesCount32Func func(uint32) int)

func NaiveTest64

func NaiveTest64(t *testing.T, onesCount64Func func(uint64) int)

func NaiveTest7

func NaiveTest7(t *testing.T, onesCount7Func func(uint8) int)

func NaiveTest8

func NaiveTest8(t *testing.T, onesCount8Func func(uint8) int)

func TableTest

func TableTest(t *testing.T, onesCountFunc func(uint) int)

func TableTest15

func TableTest15(t *testing.T, onesCount15Func func(uint16) int)

func TableTest16

func TableTest16(t *testing.T, onesCount16Func func(uint16) int)

func TableTest32

func TableTest32(t *testing.T, onesCount32Func func(uint32) int)

func TableTest64

func TableTest64(t *testing.T, onesCount64Func func(uint64) int)

func TableTest7

func TableTest7(t *testing.T, onesCount7Func func(uint8) int)

func TableTest8

func TableTest8(t *testing.T, onesCount8Func func(uint8) int)

Types

type OnesCountFuncs

type OnesCountFuncs struct {
	Uint   func(uint) int
	Uint8  func(uint8) int
	Uint16 func(uint16) int
	Uint32 func(uint32) int
	Uint64 func(uint64) int
}

Directories

Path Synopsis
asm
Source: https://stackoverflow.com/q/8590432/142239 Source: http://www.stmintz.com/ccc/index.php?id=94570
Source: https://stackoverflow.com/q/8590432/142239 Source: http://www.stmintz.com/ccc/index.php?id=94570
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop0)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop0)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop1) Source: java.lang.Integer#bitCount Source: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8u40-b25/java/lang/Integer.java#Integer.bitCount%28int%29 Source: java.lang.Long#bitCount Source: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8u40-b25/java/lang/Long.java#Long.bitCount%28long%29
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop1) Source: java.lang.Integer#bitCount Source: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8u40-b25/java/lang/Integer.java#Integer.bitCount%28int%29 Source: java.lang.Long#bitCount Source: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8u40-b25/java/lang/Long.java#Long.bitCount%28long%29
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop1 + alternative) Source: https://github.com/gcc-mirror/gcc/blob/master/libgcc/libgcc2.c#L840-L859 Source: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36041#c8
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop1 + alternative) Source: https://github.com/gcc-mirror/gcc/blob/master/libgcc/libgcc2.c#L840-L859 Source: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36041#c8
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop2)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop2)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop2 + alternative)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop2 + alternative)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop3)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop3)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop5)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop5)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop4)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop4)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop5a)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop5a)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop6)
Source: http://www.hackersdelight.org/hdcodetxt/pop.c.txt (pop6)

Jump to

Keyboard shortcuts

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