Lines Matching refs:a

13 #define crush_hashmix(a, b, c) do {			\  argument
14 a = a-b; a = a-c; a = a^(c>>13); \
15 b = b-c; b = b-a; b = b^(a<<8); \
16 c = c-a; c = c-b; c = c^(b>>13); \
17 a = a-b; a = a-c; a = a^(c>>12); \
18 b = b-c; b = b-a; b = b^(a<<16); \
19 c = c-a; c = c-b; c = c^(b>>5); \
20 a = a-b; a = a-c; a = a^(c>>3); \
21 b = b-c; b = b-a; b = b^(a<<10); \
22 c = c-a; c = c-b; c = c^(b>>15); \
27 static __u32 crush_hash32_rjenkins1(__u32 a) in crush_hash32_rjenkins1() argument
29 __u32 hash = crush_hash_seed ^ a; in crush_hash32_rjenkins1()
30 __u32 b = a; in crush_hash32_rjenkins1()
34 crush_hashmix(y, a, hash); in crush_hash32_rjenkins1()
38 static __u32 crush_hash32_rjenkins1_2(__u32 a, __u32 b) in crush_hash32_rjenkins1_2() argument
40 __u32 hash = crush_hash_seed ^ a ^ b; in crush_hash32_rjenkins1_2()
43 crush_hashmix(a, b, hash); in crush_hash32_rjenkins1_2()
44 crush_hashmix(x, a, hash); in crush_hash32_rjenkins1_2()
49 static __u32 crush_hash32_rjenkins1_3(__u32 a, __u32 b, __u32 c) in crush_hash32_rjenkins1_3() argument
51 __u32 hash = crush_hash_seed ^ a ^ b ^ c; in crush_hash32_rjenkins1_3()
54 crush_hashmix(a, b, hash); in crush_hash32_rjenkins1_3()
56 crush_hashmix(y, a, hash); in crush_hash32_rjenkins1_3()
62 static __u32 crush_hash32_rjenkins1_4(__u32 a, __u32 b, __u32 c, __u32 d) in crush_hash32_rjenkins1_4() argument
64 __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d; in crush_hash32_rjenkins1_4()
67 crush_hashmix(a, b, hash); in crush_hash32_rjenkins1_4()
69 crush_hashmix(a, x, hash); in crush_hash32_rjenkins1_4()
76 static __u32 crush_hash32_rjenkins1_5(__u32 a, __u32 b, __u32 c, __u32 d, in crush_hash32_rjenkins1_5() argument
79 __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d ^ e; in crush_hash32_rjenkins1_5()
82 crush_hashmix(a, b, hash); in crush_hash32_rjenkins1_5()
85 crush_hashmix(y, a, hash); in crush_hash32_rjenkins1_5()
94 __u32 crush_hash32(int type, __u32 a) in crush_hash32() argument
98 return crush_hash32_rjenkins1(a); in crush_hash32()
104 __u32 crush_hash32_2(int type, __u32 a, __u32 b) in crush_hash32_2() argument
108 return crush_hash32_rjenkins1_2(a, b); in crush_hash32_2()
114 __u32 crush_hash32_3(int type, __u32 a, __u32 b, __u32 c) in crush_hash32_3() argument
118 return crush_hash32_rjenkins1_3(a, b, c); in crush_hash32_3()
124 __u32 crush_hash32_4(int type, __u32 a, __u32 b, __u32 c, __u32 d) in crush_hash32_4() argument
128 return crush_hash32_rjenkins1_4(a, b, c, d); in crush_hash32_4()
134 __u32 crush_hash32_5(int type, __u32 a, __u32 b, __u32 c, __u32 d, __u32 e) in crush_hash32_5() argument
138 return crush_hash32_rjenkins1_5(a, b, c, d, e); in crush_hash32_5()