Lines Matching +full:a +full:- +full:c

10 #define mix(a, b, c)						\  argument
12 a = a - b; a = a - c; a = a ^ (c >> 13); \
13 b = b - c; b = b - a; b = b ^ (a << 8); \
14 c = c - a; c = c - b; c = c ^ (b >> 13); \
15 a = a - b; a = a - c; a = a ^ (c >> 12); \
16 b = b - c; b = b - a; b = b ^ (a << 16); \
17 c = c - a; c = c - b; c = c ^ (b >> 5); \
18 a = a - b; a = a - c; a = a ^ (c >> 3); \
19 b = b - c; b = b - a; b = b ^ (a << 10); \
20 c = c - a; c = c - b; c = c ^ (b >> 15); \
26 __u32 a, b, c; /* the internal state */ in ceph_str_hash_rjenkins() local
31 a = 0x9e3779b9; /* the golden ratio; an arbitrary value */ in ceph_str_hash_rjenkins()
32 b = a; in ceph_str_hash_rjenkins()
33 c = 0; /* variable initialization of internal state */ in ceph_str_hash_rjenkins()
37 a = a + (k[0] + ((__u32)k[1] << 8) + ((__u32)k[2] << 16) + in ceph_str_hash_rjenkins()
41 c = c + (k[8] + ((__u32)k[9] << 8) + ((__u32)k[10] << 16) + in ceph_str_hash_rjenkins()
43 mix(a, b, c); in ceph_str_hash_rjenkins()
45 len = len - 12; in ceph_str_hash_rjenkins()
49 c = c + length; in ceph_str_hash_rjenkins()
52 c = c + ((__u32)k[10] << 24); in ceph_str_hash_rjenkins()
55 c = c + ((__u32)k[9] << 16); in ceph_str_hash_rjenkins()
58 c = c + ((__u32)k[8] << 8); in ceph_str_hash_rjenkins()
59 /* the first byte of c is reserved for the length */ in ceph_str_hash_rjenkins()
74 a = a + ((__u32)k[3] << 24); in ceph_str_hash_rjenkins()
77 a = a + ((__u32)k[2] << 16); in ceph_str_hash_rjenkins()
80 a = a + ((__u32)k[1] << 8); in ceph_str_hash_rjenkins()
83 a = a + k[0]; in ceph_str_hash_rjenkins()
86 mix(a, b, c); in ceph_str_hash_rjenkins()
88 return c; in ceph_str_hash_rjenkins()
97 unsigned char c; in ceph_str_hash_linux() local
99 while (length--) { in ceph_str_hash_linux()
100 c = *str++; in ceph_str_hash_linux()
101 hash = (hash + (c << 4) + (c >> 4)) * 11; in ceph_str_hash_linux()
115 return -1; in ceph_str_hash()