jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Static Public Member Functions | List of all members
org.jau.util.Hash64 Class Reference
Collaboration diagram for org.jau.util.Hash64:

Static Public Member Functions

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...
 

Detailed Description

Definition at line 26 of file Hash64.java.

Member Function Documentation

◆ 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
prime
a
Returns

Definition at line 37 of file Hash64.java.

Here is the caller graph for this function:

◆ hash() [2/3]

static long org.jau.util.Hash64.hash ( final long  prime,
final int  a,
final int  b 
)
static

Definition at line 48 of file Hash64.java.

◆ hash() [3/3]

static long org.jau.util.Hash64.hash ( final long  prime,
final long  a,
final long  b 
)
static

Definition at line 53 of file Hash64.java.

◆ 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.

Here is the call graph for this function:

The documentation for this class was generated from the following file: