|
static long | hash (final long prime, final byte a[]) |
|
static long | hash (final long prime, final int a, final int b) |
|
static long | hash (final long prime, final long a, final long b) |
|
static long | hash31 (final long a, final long b) |
| Generates a 64bit equally distributed hash value from addr and size avoiding XOR collisions. More...
|
|
Definition at line 26 of file Hash64.java.
◆ hash() [1/3]
static long org.jau.util.Hash64.hash |
( |
final long |
prime, |
|
|
final byte |
a[] |
|
) |
| |
|
static |
-
31 - the traditional 'Java' prime for
31 * x == (x << 5) - x
-
92821 - result of Hans-Peter Stoerr's finding
- Parameters
-
- Returns
Definition at line 37 of file Hash64.java.
◆ hash() [2/3]
static long org.jau.util.Hash64.hash |
( |
final long |
prime, |
|
|
final int |
a, |
|
|
final int |
b |
|
) |
| |
|
static |
◆ hash() [3/3]
static long org.jau.util.Hash64.hash |
( |
final long |
prime, |
|
|
final long |
a, |
|
|
final long |
b |
|
) |
| |
|
static |
◆ hash31()
static long org.jau.util.Hash64.hash31 |
( |
final long |
a, |
|
|
final long |
b |
|
) |
| |
|
static |
Generates a 64bit equally distributed hash value from addr
and size
avoiding XOR collisions.
Definition at line 62 of file Hash64.java.
The documentation for this class was generated from the following file: