Lines Matching refs:hash
3 # include <linux/crush/hash.h>
5 # include "hash.h"
10 * https://burtleburtle.net/bob/hash/evahash.html
29 __u32 hash = crush_hash_seed ^ a;
33 crush_hashmix(b, x, hash);
34 crush_hashmix(y, a, hash);
35 return hash;
40 __u32 hash = crush_hash_seed ^ a ^ b;
43 crush_hashmix(a, b, hash);
44 crush_hashmix(x, a, hash);
45 crush_hashmix(b, y, hash);
46 return hash;
51 __u32 hash = crush_hash_seed ^ a ^ b ^ c;
54 crush_hashmix(a, b, hash);
55 crush_hashmix(c, x, hash);
56 crush_hashmix(y, a, hash);
57 crush_hashmix(b, x, hash);
58 crush_hashmix(y, c, hash);
59 return hash;
64 __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d;
67 crush_hashmix(a, b, hash);
68 crush_hashmix(c, d, hash);
69 crush_hashmix(a, x, hash);
70 crush_hashmix(y, b, hash);
71 crush_hashmix(c, x, hash);
72 crush_hashmix(y, d, hash);
73 return hash;
79 __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d ^ e;
82 crush_hashmix(a, b, hash);
83 crush_hashmix(c, d, hash);
84 crush_hashmix(e, x, hash);
85 crush_hashmix(y, a, hash);
86 crush_hashmix(b, x, hash);
87 crush_hashmix(y, c, hash);
88 crush_hashmix(d, x, hash);
89 crush_hashmix(y, e, hash);
90 return hash;