Lines Matching +full:a +full:- +full:b
1 // SPDX-License-Identifier: GPL-2.0
9 return (word << shift) | (word >> ((-shift) & 31)); in rol32()
12 #define __jhash_mix(a, b, c) \ argument
14 a -= c; a ^= rol32(c, 4); c += b; \
15 b -= a; b ^= rol32(a, 6); a += c; \
16 c -= b; c ^= rol32(b, 8); b += a; \
17 a -= c; a ^= rol32(c, 16); c += b; \
18 b -= a; b ^= rol32(a, 19); a += c; \
19 c -= b; c ^= rol32(b, 4); b += a; \
22 #define __jhash_final(a, b, c) \ argument
24 c ^= b; c -= rol32(b, 14); \
25 a ^= c; a -= rol32(c, 11); \
26 b ^= a; b -= rol32(a, 25); \
27 c ^= b; c -= rol32(b, 16); \
28 a ^= c; a -= rol32(c, 4); \
29 b ^= a; b -= rol32(a, 14); \
30 c ^= b; c -= rol32(b, 24); \
38 u32 a, b, c; in jhash() local
41 a = b = c = JHASH_INITVAL + length + initval; in jhash()
44 a += *(volatile u32 *)(k); in jhash()
45 b += *(volatile u32 *)(k + 4); in jhash()
47 __jhash_mix(a, b, c); in jhash()
48 length -= 12; in jhash()
56 case 8: b += (u32)k[7]<<24; in jhash()
57 case 7: b += (u32)k[6]<<16; in jhash()
58 case 6: b += (u32)k[5]<<8; in jhash()
59 case 5: b += k[4]; in jhash()
60 case 4: a += (u32)k[3]<<24; in jhash()
61 case 3: a += (u32)k[2]<<16; in jhash()
62 case 2: a += (u32)k[1]<<8; in jhash()
63 case 1: a += k[0]; in jhash()
64 c ^= a; in jhash()
65 __jhash_final(a, b, c); in jhash()
75 u32 a, b, c; in jhash2() local
78 a = b = c = JHASH_INITVAL + (length<<2) + initval; in jhash2()
82 a += k[0]; in jhash2()
83 b += k[1]; in jhash2()
85 __jhash_mix(a, b, c); in jhash2()
86 length -= 3; in jhash2()
93 case 2: b += k[1]; in jhash2()
94 case 1: a += k[0]; in jhash2()
95 __jhash_final(a, b, c); in jhash2()