Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
jhash.h File Reference
#include <linux/bitops.h>
#include <linux/unaligned/packed_struct.h>

Go to the source code of this file.

Macros

#define jhash_size(n)   ((u32)1<<(n))
 
#define jhash_mask(n)   (jhash_size(n)-1)
 
#define __jhash_mix(a, b, c)
 
#define __jhash_final(a, b, c)
 
#define JHASH_INITVAL   0xdeadbeef
 

Macro Definition Documentation

#define __jhash_final (   a,
  b,
  c 
)
Value:
{ \
c ^= b; c -= rol32(b, 14); \
a ^= c; a -= rol32(c, 11); \
b ^= a; b -= rol32(a, 25); \
c ^= b; c -= rol32(b, 16); \
a ^= c; a -= rol32(c, 4); \
b ^= a; b -= rol32(a, 14); \
c ^= b; c -= rol32(b, 24); \
}

Definition at line 46 of file jhash.h.

#define __jhash_mix (   a,
  b,
  c 
)
Value:
{ \
a -= c; a ^= rol32(c, 4); c += b; \
b -= a; b ^= rol32(a, 6); a += c; \
c -= b; c ^= rol32(b, 8); b += a; \
a -= c; a ^= rol32(c, 16); c += b; \
b -= a; b ^= rol32(a, 19); a += c; \
c -= b; c ^= rol32(b, 4); b += a; \
}

Definition at line 35 of file jhash.h.

#define JHASH_INITVAL   0xdeadbeef

Definition at line 58 of file jhash.h.

#define jhash_mask (   n)    (jhash_size(n)-1)

Definition at line 32 of file jhash.h.

#define jhash_size (   n)    ((u32)1<<(n))

Definition at line 30 of file jhash.h.