#include "jenkins_hash.h"
Go to the source code of this file.
Namespaces | |
namespace | oasys |
Defines | |
#define | hashsize(n) ((u_int32_t)1<<(n)) |
#define | hashmask(n) (hashsize(n)-1) |
#define | mix(a, b, c) |
Functions | |
u_int32_t | oasys::jenkins_hash (u_int8_t *k, u_int32_t length, u_int32_t initval) |
#define hashmask | ( | n | ) | (hashsize(n)-1) |
Definition at line 31 of file jenkins_hash.cc.
#define hashsize | ( | n | ) | ((u_int32_t)1<<(n)) |
Definition at line 30 of file jenkins_hash.cc.
#define mix | ( | a, | |||
b, | |||||
c | ) |
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 59 of file jenkins_hash.cc.
Referenced by oasys::jenkins_hash().