Lines Matching refs:k
55 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument
185 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */ in hashlittle() local
191 a += k[0]; in hashlittle()
192 b += k[1]; in hashlittle()
193 c += k[2]; in hashlittle()
196 k += 3; in hashlittle()
214 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashlittle()
215 case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break; in hashlittle()
216 case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break; in hashlittle()
217 case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break; in hashlittle()
218 case 8 : b+=k[1]; a+=k[0]; break; in hashlittle()
219 case 7 : b+=k[1]&0xffffff; a+=k[0]; break; in hashlittle()
220 case 6 : b+=k[1]&0xffff; a+=k[0]; break; in hashlittle()
221 case 5 : b+=k[1]&0xff; a+=k[0]; break; in hashlittle()
222 case 4 : a+=k[0]; break; in hashlittle()
223 case 3 : a+=k[0]&0xffffff; break; in hashlittle()
224 case 2 : a+=k[0]&0xffff; break; in hashlittle()
225 case 1 : a+=k[0]&0xff; break; in hashlittle()
231 k8 = (const uint8_t *)k; in hashlittle()
234 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashlittle()
238 case 8 : b+=k[1]; a+=k[0]; break; in hashlittle()
242 case 4 : a+=k[0]; break; in hashlittle()
252 const uint16_t *k = (const uint16_t *)key; /* read 16-bit chunks */ in hashlittle() local
258 a += k[0] + (((uint32_t)k[1])<<16); in hashlittle()
259 b += k[2] + (((uint32_t)k[3])<<16); in hashlittle()
260 c += k[4] + (((uint32_t)k[5])<<16); in hashlittle()
263 k += 6; in hashlittle()
267 k8 = (const uint8_t *)k; in hashlittle()
270 case 12: c+=k[4]+(((uint32_t)k[5])<<16); in hashlittle()
271 b+=k[2]+(((uint32_t)k[3])<<16); in hashlittle()
272 a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle()
275 case 10: c+=k[4]; in hashlittle()
276 b+=k[2]+(((uint32_t)k[3])<<16); in hashlittle()
277 a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle()
280 case 8 : b+=k[2]+(((uint32_t)k[3])<<16); in hashlittle()
281 a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle()
284 case 6 : b+=k[2]; in hashlittle()
285 a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle()
288 case 4 : a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle()
291 case 2 : a+=k[0]; in hashlittle()
299 const uint8_t *k = (const uint8_t *)key; in hashlittle() local
304 a += k[0]; in hashlittle()
305 a += ((uint32_t)k[1])<<8; in hashlittle()
306 a += ((uint32_t)k[2])<<16; in hashlittle()
307 a += ((uint32_t)k[3])<<24; in hashlittle()
308 b += k[4]; in hashlittle()
309 b += ((uint32_t)k[5])<<8; in hashlittle()
310 b += ((uint32_t)k[6])<<16; in hashlittle()
311 b += ((uint32_t)k[7])<<24; in hashlittle()
312 c += k[8]; in hashlittle()
313 c += ((uint32_t)k[9])<<8; in hashlittle()
314 c += ((uint32_t)k[10])<<16; in hashlittle()
315 c += ((uint32_t)k[11])<<24; in hashlittle()
318 k += 12; in hashlittle()
324 case 12: c+=((uint32_t)k[11])<<24; in hashlittle()
325 case 11: c+=((uint32_t)k[10])<<16; in hashlittle()
326 case 10: c+=((uint32_t)k[9])<<8; in hashlittle()
327 case 9 : c+=k[8]; in hashlittle()
328 case 8 : b+=((uint32_t)k[7])<<24; in hashlittle()
329 case 7 : b+=((uint32_t)k[6])<<16; in hashlittle()
330 case 6 : b+=((uint32_t)k[5])<<8; in hashlittle()
331 case 5 : b+=k[4]; in hashlittle()
332 case 4 : a+=((uint32_t)k[3])<<24; in hashlittle()
333 case 3 : a+=((uint32_t)k[2])<<16; in hashlittle()
334 case 2 : a+=((uint32_t)k[1])<<8; in hashlittle()
335 case 1 : a+=k[0]; in hashlittle()
362 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */ in hashbig() local
368 a += k[0]; in hashbig()
369 b += k[1]; in hashbig()
370 c += k[2]; in hashbig()
373 k += 3; in hashbig()
391 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashbig()
392 case 11: c+=k[2]&0xffffff00; b+=k[1]; a+=k[0]; break; in hashbig()
393 case 10: c+=k[2]&0xffff0000; b+=k[1]; a+=k[0]; break; in hashbig()
394 case 9 : c+=k[2]&0xff000000; b+=k[1]; a+=k[0]; break; in hashbig()
395 case 8 : b+=k[1]; a+=k[0]; break; in hashbig()
396 case 7 : b+=k[1]&0xffffff00; a+=k[0]; break; in hashbig()
397 case 6 : b+=k[1]&0xffff0000; a+=k[0]; break; in hashbig()
398 case 5 : b+=k[1]&0xff000000; a+=k[0]; break; in hashbig()
399 case 4 : a+=k[0]; break; in hashbig()
400 case 3 : a+=k[0]&0xffffff00; break; in hashbig()
401 case 2 : a+=k[0]&0xffff0000; break; in hashbig()
402 case 1 : a+=k[0]&0xff000000; break; in hashbig()
408 k8 = (const uint8_t *)k; in hashbig()
411 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashbig()
415 case 8 : b+=k[1]; a+=k[0]; break; in hashbig()
419 case 4 : a+=k[0]; break; in hashbig()
429 const uint8_t *k = (const uint8_t *)key; in hashbig() local
434 a += ((uint32_t)k[0])<<24; in hashbig()
435 a += ((uint32_t)k[1])<<16; in hashbig()
436 a += ((uint32_t)k[2])<<8; in hashbig()
437 a += ((uint32_t)k[3]); in hashbig()
438 b += ((uint32_t)k[4])<<24; in hashbig()
439 b += ((uint32_t)k[5])<<16; in hashbig()
440 b += ((uint32_t)k[6])<<8; in hashbig()
441 b += ((uint32_t)k[7]); in hashbig()
442 c += ((uint32_t)k[8])<<24; in hashbig()
443 c += ((uint32_t)k[9])<<16; in hashbig()
444 c += ((uint32_t)k[10])<<8; in hashbig()
445 c += ((uint32_t)k[11]); in hashbig()
448 k += 12; in hashbig()
454 case 12: c+=k[11]; in hashbig()
455 case 11: c+=((uint32_t)k[10])<<8; in hashbig()
456 case 10: c+=((uint32_t)k[9])<<16; in hashbig()
457 case 9 : c+=((uint32_t)k[8])<<24; in hashbig()
458 case 8 : b+=k[7]; in hashbig()
459 case 7 : b+=((uint32_t)k[6])<<8; in hashbig()
460 case 6 : b+=((uint32_t)k[5])<<16; in hashbig()
461 case 5 : b+=((uint32_t)k[4])<<24; in hashbig()
462 case 4 : a+=k[3]; in hashbig()
463 case 3 : a+=((uint32_t)k[2])<<8; in hashbig()
464 case 2 : a+=((uint32_t)k[1])<<16; in hashbig()
465 case 1 : a+=((uint32_t)k[0])<<24; in hashbig()