Rrmxmx

object Rrmxmx

A Kotlin implementation of the rrmxmx hash function.

Functions

Link copied to clipboard
fun hash(v: Byte): Long
fun hash(v: Double): Long
fun hash(v: Float): Long
fun hash(v: Int): Long
fun hash(v: Long): Long
fun hash(v: Short): Long
fun hash(v: UByte): Long
fun hash(v: UInt): Long
fun hash(v: ULong): Long
fun hash(v: UShort): Long

Shuffles v using rrmxmx. Returns a Long.

Link copied to clipboard
infix fun ULong.ror(shift: Int): ULong

Extension method for ULong implementing a bitwise right rotation of shift.

Link copied to clipboard
fun rrmxmx(v: Byte): ULong
fun rrmxmx(v: Double): ULong
fun rrmxmx(v: Float): ULong
fun rrmxmx(v: Int): ULong
fun rrmxmx(v: Long): ULong
fun rrmxmx(v: Short): ULong
fun rrmxmx(v: UByte): ULong
fun rrmxmx(v: UInt): ULong
fun rrmxmx(v: ULong): ULong
fun rrmxmx(v: UShort): ULong

Shuffles v using rrmxmx.