Documentation
¶
Overview ¶
Package bits provides bit manipulation functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cycle ¶
Cycle uses a Linear Congruential Generator (LCG) and cycle walking to produce a pseudo-random sequence in [0, rangeLimit)
func Mix ¶
Mix shuffles x with b bits (bijective) This ensures that every input maps to exactly one unique output.
func TrailingOnes ¶
TrailingOnes returns the number of trailing one bits in x
Types ¶
Click to show internal directories.
Click to hide internal directories.