netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
jhash.h File Reference
#include <linux/bitops.h>
#include <linux/unaligned/packed_struct.h>
Include dependency graph for jhash.h:
This graph shows which files directly or indirectly include 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,
 
)
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); \
}
u_int8_t b
Definition: ulogd.h:107
#define __jhash_mix (   a,
  b,
 
)
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; \
}
u_int8_t b
Definition: ulogd.h:107
#define JHASH_INITVAL   0xdeadbeef
#define jhash_mask (   n)    (jhash_size(n)-1)
#define jhash_size (   n)    ((u32)1<<(n))