turbopfor

package
v0.0.0-...-1542595 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodingSize

func DecodingSize(n int) int

Corresponding to p4nbound32:

#define VP4BOUND(_n_, _esize_, _csize_) ((_esize_*_n_) + ((_n_+_csize_-1)/_csize_)) size_t p4nbound32( size_t n) { return VP4BOUND(n, 4, 128); }

see also https://github.com/powturbo/TurboPFor-Integer-Compression/issues/59

see also https://github.com/powturbo/TurboPFor-Integer-Compression/issues/84

func EncodingSize

func EncodingSize(n int) int

Corresponding to p4nbound256v32:

#define VP4BOUND(_n_, _esize_, _csize_) ((_esize_*_n_) + ((_n_+_csize_-1)/_csize_)) size_t p4nbound256v32(size_t n) { return VP4BOUND(n, 4, 256); }

see also https://github.com/powturbo/TurboPFor-Integer-Compression/issues/59

func P4dec256v32

func P4dec256v32(input []byte, output []uint32) (read int)

func P4dec32

func P4dec32(input []byte, output []uint32) (read int)

func P4enc256v32

func P4enc256v32(input []uint32, output []byte) int

len(input) % 32 must be 0 (pad with 0x00 if necessary).

func P4enc32

func P4enc32(input []uint32) []byte

len(input) % 32 must be 0 (pad with 0x00 if necessary).

func P4nd1dec32

func P4nd1dec32(input []byte, output []uint32) (read int)

func P4nd1enc32

func P4nd1enc32(input []uint32) []byte

len(input) % 32 must be 0 (pad with 0x00 if necessary).

func P4ndec256v32

func P4ndec256v32(input []byte, output []uint32) (read int)

func P4ndec32

func P4ndec32(input []byte, output []uint32) (read int)

func P4nenc256v32

func P4nenc256v32(input []uint32) []byte

len(input) % 32 must be 0 (pad with 0x00 if necessary).

func P4nenc32

func P4nenc32(input []uint32) []byte

KNOWN WORKING len(input) % 32 must be 0 (pad with 0x00 if necessary).

func P4nzenc32

func P4nzenc32(input []uint32) []byte

len(input) % 32 must be 0 (pad with 0x00 if necessary).

Types

This section is empty.

Jump to

Keyboard shortcuts

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