Lines Matching refs:c

123 #define mix(a,b,c) \  argument
125 a -= c; a ^= rot(c, 4); c += b; \
126 b -= a; b ^= rot(a, 6); a += c; \
127 c -= b; c ^= rot(b, 8); b += a; \
128 a -= c; a ^= rot(c,16); c += b; \
129 b -= a; b ^= rot(a,19); a += c; \
130 c -= b; c ^= rot(b, 4); b += a; \
158 #define final(a,b,c) \ argument
160 c ^= b; c -= rot(b,14); \
161 a ^= c; a -= rot(c,11); \
163 c ^= b; c -= rot(b,16); \
164 a ^= c; a -= rot(c,4); \
166 c ^= b; c -= rot(b,24); \
198 uint32_t a,b,c; /* internal state */ in hashlittle() local
202 a = b = c = 0xdeadbeef + ((uint32_t)length) + initval; in hashlittle()
232 c += k[2]; in hashlittle()
233 mix(a,b,c); in hashlittle()
252 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashlittle()
253 case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break; in hashlittle()
254 case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break; in hashlittle()
255 case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break; in hashlittle()
264 case 0 : return c; /* zero length strings require no mixing */ in hashlittle()
272 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashlittle()
273 case 11: c+=((uint32_t)k8[10])<<16; /* fall through */ in hashlittle()
274 case 10: c+=((uint32_t)k8[9])<<8; /* fall through */ in hashlittle()
275 case 9 : c+=k8[8]; /* fall through */ in hashlittle()
284 case 0 : return c; in hashlittle()
298 c += k[4] + (((uint32_t)k[5])<<16); in hashlittle()
299 mix(a,b,c); in hashlittle()
308 case 12: c+=k[4]+(((uint32_t)k[5])<<16); in hashlittle()
312 case 11: c+=((uint32_t)k8[10])<<16; /* fall through */ in hashlittle()
313 case 10: c+=k[4]; in hashlittle()
317 case 9 : c+=k8[8]; /* fall through */ in hashlittle()
333 case 0 : return c; /* zero length requires no mixing */ in hashlittle()
350 c += k[8]; in hashlittle()
351 c += ((uint32_t)k[9])<<8; in hashlittle()
352 c += ((uint32_t)k[10])<<16; in hashlittle()
353 c += ((uint32_t)k[11])<<24; in hashlittle()
354 mix(a,b,c); in hashlittle()
362 case 12: c+=((uint32_t)k[11])<<24; in hashlittle()
363 case 11: c+=((uint32_t)k[10])<<16; in hashlittle()
364 case 10: c+=((uint32_t)k[9])<<8; in hashlittle()
365 case 9 : c+=k[8]; in hashlittle()
375 case 0 : return c; in hashlittle()
379 final(a,b,c); in hashlittle()
380 return c; in hashlittle()