Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hamming ¶
Hamming calculates the Hamming distance between two byte slices. Length of both slices can be arbitrary, but the distance will not be calculated on the remaining part of the longer slice.
func PopCountUint16 ¶
PopCountUint16 counts the number of 1 bite in uint16 integer.
func PopCountUint32 ¶
PopCountUint32 counts the number of 1 bite in uint32 integer.
func PopCountUint64 ¶
PopCountUint64 counts the number of 1 bite in uint64 integer.
func PopCountUint8 ¶
PopCountUint8 counts the number of 1 bite in uint8 integer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.