Documentation
¶
Overview ¶
Package bits provides low-level bit manipulation primitives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FastRange32 ¶
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.
Click to show internal directories.
Click to hide internal directories.