common

package
v0.0.0-...-65e5f0f Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Family_HLL_ID = 7
)

Variables

This section is empty.

Functions

func BoolToInt

func BoolToInt(b bool) int

func CeilPowerOf2

func CeilPowerOf2(n int) int

CeilPowerOf2 returns the smallest power of 2 greater than or equal to n.

func ExactLog2OfLong

func ExactLog2OfLong(powerOf2 uint64) int

func GetShortLE

func GetShortLE(array []byte, offset int) int

GetShortLE gets a short value from a byte array in little endian format.

func InvPow2

func InvPow2(e int) float64

InvPow2 returns 2^(-e).

func PutShortLE

func PutShortLE(array []byte, offset int, value int)

PutShortLE puts a short value into a byte array in little endian format.

func Pwr2SeriesNext

func Pwr2SeriesNext(ppo int, curPoint int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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