Lines Matching refs:a
35 #define __jhash_mix(a, b, c) \ argument
37 a -= c; a ^= rol32(c, 4); c += b; \
38 b -= a; b ^= rol32(a, 6); a += c; \
39 c -= b; c ^= rol32(b, 8); b += a; \
40 a -= c; a ^= rol32(c, 16); c += b; \
41 b -= a; b ^= rol32(a, 19); a += c; \
42 c -= b; c ^= rol32(b, 4); b += a; \
46 #define __jhash_final(a, b, c) \ argument
49 a ^= c; a -= rol32(c, 11); \
50 b ^= a; b -= rol32(a, 25); \
52 a ^= c; a -= rol32(c, 4); \
53 b ^= a; b -= rol32(a, 14); \
72 u32 a, b, c; in jhash() local
76 a = b = c = JHASH_INITVAL + length + initval; in jhash()
80 a += __get_unaligned_cpu32(k); in jhash()
83 __jhash_mix(a, b, c); in jhash()
98 case 4: a += (u32)k[3]<<24; in jhash()
99 case 3: a += (u32)k[2]<<16; in jhash()
100 case 2: a += (u32)k[1]<<8; in jhash()
101 case 1: a += k[0]; in jhash()
102 __jhash_final(a, b, c); in jhash()
119 u32 a, b, c; in jhash2() local
122 a = b = c = JHASH_INITVAL + (length<<2) + initval; in jhash2()
126 a += k[0]; in jhash2()
129 __jhash_mix(a, b, c); in jhash2()
138 case 1: a += k[0]; in jhash2()
139 __jhash_final(a, b, c); in jhash2()
149 static inline u32 __jhash_nwords(u32 a, u32 b, u32 c, u32 initval) in __jhash_nwords() argument
151 a += initval; in __jhash_nwords()
155 __jhash_final(a, b, c); in __jhash_nwords()
160 static inline u32 jhash_3words(u32 a, u32 b, u32 c, u32 initval) in jhash_3words() argument
162 return __jhash_nwords(a, b, c, initval + JHASH_INITVAL + (3 << 2)); in jhash_3words()
165 static inline u32 jhash_2words(u32 a, u32 b, u32 initval) in jhash_2words() argument
167 return __jhash_nwords(a, b, 0, initval + JHASH_INITVAL + (2 << 2)); in jhash_2words()
170 static inline u32 jhash_1word(u32 a, u32 initval) in jhash_1word() argument
172 return __jhash_nwords(a, 0, 0, initval + JHASH_INITVAL + (1 << 2)); in jhash_1word()