xxh3

package module
v0.0.0-...-1675ae8 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2019 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package xxh3 is an extremely fast hash algorithm

Index

Constants

View Source
const (
	PRIME64_1 = 11400714785074694791 // 0b1001111000110111011110011011000110000101111010111100101010000111
	PRIME64_2 = 14029467366897019727 // 0b1100001010110010101011100011110100100111110101001110101101001111
	PRIME64_3 = 1609587929392839161  // 0b0001011001010110011001111011000110011110001101110111100111111001
	PRIME64_4 = 9650029242287828579  // 0b1000010111101011110010100111011111000010101100101010111001100011
	PRIME64_5 = 2870177450012600261  // 0b0010011111010100111010110010111100010110010101100110011111000101
)
View Source
const ACC_NB = STRIPE_LEN / 8 // =  unsafe.Sizeof(uint64)
View Source
const KEYSET_DEFAULT_SIZE = 48 /* minimum 32 */
View Source
const STRIPE_ELTS = STRIPE_LEN / 4 // = unsafe.Sizeof(uint32)
View Source
const STRIPE_LEN = 64

Variables

This section is empty.

Functions

func Hash

func Hash(data []byte, seed uint64) uint64

func XXH3_64bits

func XXH3_64bits(data []byte) uint64

func XXH3_64bits_withSeed

func XXH3_64bits_withSeed(data []byte, seed uint64) uint64

func XXH3_accumulate

func XXH3_accumulate(acc []uint64, data []byte, key []uint32, nbStripes int)

func XXH3_accumulate_512

func XXH3_accumulate_512(acc []uint64, data []byte, key []uint32)

func XXH3_accumulate_full

func XXH3_accumulate_full(acc []uint64, data []byte, key []uint32, nbStripes int)

func XXH3_avalanche

func XXH3_avalanche(h64 uint64) uint64

func XXH3_hashLong

func XXH3_hashLong(acc []uint64, data []byte)

func XXH3_hashLong_64b

func XXH3_hashLong_64b(data []byte, seed uint64) uint64

func XXH3_len_0to16_64b

func XXH3_len_0to16_64b(data []byte, seed uint64) uint64

func XXH3_len_1to3_64b

func XXH3_len_1to3_64b(data []byte, seed uint64) uint64

func XXH3_len_4to8_64b

func XXH3_len_4to8_64b(data []byte, seed uint64) uint64

func XXH3_len_9to16_64b

func XXH3_len_9to16_64b(data []byte, seed uint64) uint64

func XXH3_mergeAccs

func XXH3_mergeAccs(acc []uint64, key []uint32, start uint64) uint64

func XXH3_mix16B

func XXH3_mix16B(data []byte, key []uint32) uint64

func XXH3_mix2Accs

func XXH3_mix2Accs(acc []uint64, key []uint32) uint64

func XXH3_mul128

func XXH3_mul128(ll1, ll2 uint64) uint64

func XXH3_readKey64

func XXH3_readKey64(ptr []uint64) uint64

func XXH3_scrambleAcc

func XXH3_scrambleAcc(acc []uint64, key []uint32)

func XXH_mult32to64

func XXH_mult32to64(a uint32, b uint64) uint64

func XXH_readLE64

func XXH_readLE64(ptr []byte) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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