bits

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add32

func Add32(x, y, carry uint32) (sum, carryOut uint32)

func Add64 added in v1.21.0

func Add64(x, y, carry uint64) (sum, carryOut uint64)

func Div32

func Div32(hi, lo, y uint32) (quo, rem uint32)

func Div64 added in v1.21.0

func Div64(hi, lo, y uint64) (quo, rem uint64)

func LeadingZeros32 added in v1.21.0

func LeadingZeros32(x uint32) int

func LeadingZeros64 added in v1.21.0

func LeadingZeros64(x uint64) int

func Len32 added in v1.21.0

func Len32(x uint32) int

func Len64 added in v1.21.0

func Len64(x uint64) int

func Mul32

func Mul32(x, y uint32) (hi, lo uint32)

func Mul64 added in v1.21.0

func Mul64(x, y uint64) (uint64, uint64)

func OnesCount64 added in v1.21.0

func OnesCount64(x uint64) int

func Rem32

func Rem32(hi, lo, y uint32) uint32

func Reverse64 added in v1.21.0

func Reverse64(x uint64) uint64

func ReverseBytes64 added in v1.21.0

func ReverseBytes64(x uint64) uint64

func RotateLeft64 added in v1.21.0

func RotateLeft64(x uint64, k int) uint64

func Sub64 added in v1.21.0

func Sub64(x, y, borrow uint64) (diff, borrowOut uint64)

func TrailingZeros32 added in v1.21.0

func TrailingZeros32(x uint32) int

func TrailingZeros64 added in v1.21.0

func TrailingZeros64(x uint64) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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