Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitSetCount ¶
BitSetCount counts the number of 1s in a byte using Hamming weight. See: https://en.wikipedia.org/wiki/Hamming_weight
func FillBitfield ¶
FillBitfield returns a bitfield of length `count`, all set to true.
func SetBitfield ¶
SetBitfield takes an index and returns bitfield with the index flipped.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.