public final class BitMixer extends Object
Forked from com.carrotsearch.hppc.BitMixer
github: https://github.com/carrotsearch/hppc release: 0.9.0
Constructor and Description |
---|
BitMixer() |
Modifier and Type | Method and Description |
---|---|
static int |
mix(byte key) |
static int |
mix(char key) |
static int |
mix(double key) |
static int |
mix(float key) |
static int |
mix(int key) |
static int |
mix(long key) |
static int |
mix(Object key) |
static int |
mix(short key) |
static int |
mix32(int k)
MH3's plain finalization step.
|
static long |
mix64(long z)
Computes David Stafford variant 9 of 64bit mix function (MH3 finalization step, with different
shifts and constants).
|
static int |
mixPhi(byte k) |
static int |
mixPhi(char k) |
static int |
mixPhi(double k) |
static int |
mixPhi(float k) |
static int |
mixPhi(int k) |
static int |
mixPhi(long k) |
static int |
mixPhi(Object k) |
static int |
mixPhi(short k) |
public static int mix(byte key)
public static int mix(short key)
public static int mix(char key)
public static int mix(int key)
public static int mix(float key)
public static int mix(double key)
public static int mix(long key)
public static int mix(Object key)
public static int mix32(int k)
public static long mix64(long z)
Variant 9 is picked because it contains two 32-bit shifts which could be possibly optimized into better machine code.
public static int mixPhi(byte k)
public static int mixPhi(char k)
public static int mixPhi(short k)
public static int mixPhi(int k)
public static int mixPhi(float k)
public static int mixPhi(double k)
public static int mixPhi(long k)
public static int mixPhi(Object k)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.