BitMixer

object BitMixer

Bit mixing utilities. The purpose of these methods is to evenly distribute key space over int32 range.

Forked from com.carrotsearch.hppc.BitMixer

github: https://github.com/carrotsearch/hppc release: 0.10.0

Functions

Link copied to clipboard
fun mix(key: Any?): Int
fun mix(key: Byte): Int
fun mix(key: Char): Int
fun mix(key: Double): Int
fun mix(key: Float): Int
fun mix(key: Int): Int
fun mix(key: Long): Int
fun mix(key: Short): Int
Link copied to clipboard
fun mix32(k: Int): Int

MH3's plain finalization step.

Link copied to clipboard
fun mix64(z: Long): Long

Computes David Stafford variant 9 of 64bit mix function (MH3 finalization step, with different shifts and constants).

Link copied to clipboard
fun mixPhi(k: Any?): Int
fun mixPhi(k: Byte): Int
fun mixPhi(k: Char): Int
fun mixPhi(k: Double): Int
fun mixPhi(k: Float): Int
fun mixPhi(k: Int): Int
fun mixPhi(k: Long): Int
fun mixPhi(k: Short): Int