bits

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package bits provides low-level bit manipulation primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FastRange32

func FastRange32(hash uint64, n uint32) uint32

FastRange32 maps a 64-bit hash uniformly to [0, n) returning uint32. Uses the "fastrange" technique: multiply and take high bits. This is the standard way to map hashes to ranges without modulo bias.

Types

This section is empty.

Jump to

Keyboard shortcuts

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