Marlin  01.17.01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
jenkinsHash.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define hashsize(n)   ( 1U << (n) )
 
#define hashmask(n)   ( hashsize ( n ) - 1 )
 
#define mix(a, b, c)
 

Functions

unsigned jenkins_hash (unsigned char *k, unsigned length, unsigned initval)
 

Macro Definition Documentation

#define hashmask (   n)    ( hashsize ( n ) - 1 )

Definition at line 15 of file jenkinsHash.h.

#define hashsize (   n)    ( 1U << (n) )

Definition at line 14 of file jenkinsHash.h.

#define mix (   a,
  b,
 
)
Value:
{ \
a -= b; a -= c; a ^= (c>>13); \
b -= c; b -= a; b ^= (a<<8); \
c -= a; c -= b; c ^= (b>>13); \
a -= b; a -= c; a ^= (c>>12); \
b -= c; b -= a; b ^= (a<<16); \
c -= a; c -= b; c ^= (b>>5); \
a -= b; a -= c; a ^= (c>>3); \
b -= c; b -= a; b ^= (a<<10); \
c -= a; c -= b; c ^= (b>>15); \
}

Definition at line 44 of file jenkinsHash.h.

Referenced by jenkins_hash().

Function Documentation

unsigned jenkins_hash ( unsigned char *  k,
unsigned  length,
unsigned  initval 
)

Definition at line 84 of file jenkinsHash.h.

References mix.

Referenced by marlin::ProcessorEventSeeder::refreshSeeds().