#include <linux/types.h>
#include <linux/crush/hash.h>
Go to the source code of this file.
|
__u32 | crush_hash32 (int type, __u32 a) |
|
__u32 | crush_hash32_2 (int type, __u32 a, __u32 b) |
|
__u32 | crush_hash32_3 (int type, __u32 a, __u32 b, __u32 c) |
|
__u32 | crush_hash32_4 (int type, __u32 a, __u32 b, __u32 c, __u32 d) |
|
__u32 | crush_hash32_5 (int type, __u32 a, __u32 b, __u32 c, __u32 d, __u32 e) |
|
const char * | crush_hash_name (int type) |
|
#define crush_hash_seed 1315423911 |
#define crush_hashmix |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| |
Value:do { \
b = b-
c; b = b-
a; b = b^(a<<8); \
c = c-
a; c = c-
b; c = c^(b>>13); \
a = a-
b; a = a-
c; a = a^(c>>12); \
b = b-
c; b = b-
a; b = b^(a<<16); \
c = c-
a; c = c-
b; c = c^(b>>5); \
a = a-
b; a = a-
c; a = a^(c>>3); \
b = b-
c; b = b-
a; b = b^(a<<10); \
c = c-
a; c = c-
b; c = c^(b>>15); \
} while (0)
Definition at line 10 of file hash.c.