• Home
  • Raw
  • Download

Lines Matching refs:k

69 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k))))  argument
175 const uint32_t *k, /* the key, an array of uint32_t values */ in hashword() argument
187 a += k[0]; in hashword()
188 b += k[1]; in hashword()
189 c += k[2]; in hashword()
192 k += 3; in hashword()
198 case 3 : c+=k[2]; in hashword()
199 case 2 : b+=k[1]; in hashword()
200 case 1 : a+=k[0]; in hashword()
219 const uint32_t *k, /* the key, an array of uint32_t values */ in hashword2() argument
233 a += k[0]; in hashword2()
234 b += k[1]; in hashword2()
235 c += k[2]; in hashword2()
238 k += 3; in hashword2()
244 case 3 : c+=k[2]; in hashword2()
245 case 2 : b+=k[1]; in hashword2()
246 case 1 : a+=k[0]; in hashword2()
293 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */ in hashlittle() local
299 a += k[0]; in hashlittle()
300 b += k[1]; in hashlittle()
301 c += k[2]; in hashlittle()
304 k += 3; in hashlittle()
321 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashlittle()
322 case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break; in hashlittle()
323 case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break; in hashlittle()
324 case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break; in hashlittle()
325 case 8 : b+=k[1]; a+=k[0]; break; in hashlittle()
326 case 7 : b+=k[1]&0xffffff; a+=k[0]; break; in hashlittle()
327 case 6 : b+=k[1]&0xffff; a+=k[0]; break; in hashlittle()
328 case 5 : b+=k[1]&0xff; a+=k[0]; break; in hashlittle()
329 case 4 : a+=k[0]; break; in hashlittle()
330 case 3 : a+=k[0]&0xffffff; break; in hashlittle()
331 case 2 : a+=k[0]&0xffff; break; in hashlittle()
332 case 1 : a+=k[0]&0xff; break; in hashlittle()
338 k8 = (const uint8_t *)k; in hashlittle()
341 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashlittle()
345 case 8 : b+=k[1]; a+=k[0]; break; in hashlittle()
349 case 4 : a+=k[0]; break; in hashlittle()
359 const uint16_t *k = (const uint16_t *)key; /* read 16-bit chunks */ in hashlittle() local
365 a += k[0] + (((uint32_t)k[1])<<16); in hashlittle()
366 b += k[2] + (((uint32_t)k[3])<<16); in hashlittle()
367 c += k[4] + (((uint32_t)k[5])<<16); in hashlittle()
370 k += 6; in hashlittle()
374 k8 = (const uint8_t *)k; in hashlittle()
377 case 12: c+=k[4]+(((uint32_t)k[5])<<16); in hashlittle()
378 b+=k[2]+(((uint32_t)k[3])<<16); in hashlittle()
379 a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle()
382 case 10: c+=k[4]; in hashlittle()
383 b+=k[2]+(((uint32_t)k[3])<<16); in hashlittle()
384 a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle()
387 case 8 : b+=k[2]+(((uint32_t)k[3])<<16); in hashlittle()
388 a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle()
391 case 6 : b+=k[2]; in hashlittle()
392 a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle()
395 case 4 : a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle()
398 case 2 : a+=k[0]; in hashlittle()
406 const uint8_t *k = (const uint8_t *)key; in hashlittle() local
411 a += k[0]; in hashlittle()
412 a += ((uint32_t)k[1])<<8; in hashlittle()
413 a += ((uint32_t)k[2])<<16; in hashlittle()
414 a += ((uint32_t)k[3])<<24; in hashlittle()
415 b += k[4]; in hashlittle()
416 b += ((uint32_t)k[5])<<8; in hashlittle()
417 b += ((uint32_t)k[6])<<16; in hashlittle()
418 b += ((uint32_t)k[7])<<24; in hashlittle()
419 c += k[8]; in hashlittle()
420 c += ((uint32_t)k[9])<<8; in hashlittle()
421 c += ((uint32_t)k[10])<<16; in hashlittle()
422 c += ((uint32_t)k[11])<<24; in hashlittle()
425 k += 12; in hashlittle()
431 case 12: c+=((uint32_t)k[11])<<24; in hashlittle()
432 case 11: c+=((uint32_t)k[10])<<16; in hashlittle()
433 case 10: c+=((uint32_t)k[9])<<8; in hashlittle()
434 case 9 : c+=k[8]; in hashlittle()
435 case 8 : b+=((uint32_t)k[7])<<24; in hashlittle()
436 case 7 : b+=((uint32_t)k[6])<<16; in hashlittle()
437 case 6 : b+=((uint32_t)k[5])<<8; in hashlittle()
438 case 5 : b+=k[4]; in hashlittle()
439 case 4 : a+=((uint32_t)k[3])<<24; in hashlittle()
440 case 3 : a+=((uint32_t)k[2])<<16; in hashlittle()
441 case 2 : a+=((uint32_t)k[1])<<8; in hashlittle()
442 case 1 : a+=k[0]; in hashlittle()
478 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */ in hashlittle2() local
484 a += k[0]; in hashlittle2()
485 b += k[1]; in hashlittle2()
486 c += k[2]; in hashlittle2()
489 k += 3; in hashlittle2()
506 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashlittle2()
507 case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break; in hashlittle2()
508 case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break; in hashlittle2()
509 case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break; in hashlittle2()
510 case 8 : b+=k[1]; a+=k[0]; break; in hashlittle2()
511 case 7 : b+=k[1]&0xffffff; a+=k[0]; break; in hashlittle2()
512 case 6 : b+=k[1]&0xffff; a+=k[0]; break; in hashlittle2()
513 case 5 : b+=k[1]&0xff; a+=k[0]; break; in hashlittle2()
514 case 4 : a+=k[0]; break; in hashlittle2()
515 case 3 : a+=k[0]&0xffffff; break; in hashlittle2()
516 case 2 : a+=k[0]&0xffff; break; in hashlittle2()
517 case 1 : a+=k[0]&0xff; break; in hashlittle2()
523 k8 = (const uint8_t *)k; in hashlittle2()
526 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashlittle2()
530 case 8 : b+=k[1]; a+=k[0]; break; in hashlittle2()
534 case 4 : a+=k[0]; break; in hashlittle2()
544 const uint16_t *k = (const uint16_t *)key; /* read 16-bit chunks */ in hashlittle2() local
550 a += k[0] + (((uint32_t)k[1])<<16); in hashlittle2()
551 b += k[2] + (((uint32_t)k[3])<<16); in hashlittle2()
552 c += k[4] + (((uint32_t)k[5])<<16); in hashlittle2()
555 k += 6; in hashlittle2()
559 k8 = (const uint8_t *)k; in hashlittle2()
562 case 12: c+=k[4]+(((uint32_t)k[5])<<16); in hashlittle2()
563 b+=k[2]+(((uint32_t)k[3])<<16); in hashlittle2()
564 a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle2()
567 case 10: c+=k[4]; in hashlittle2()
568 b+=k[2]+(((uint32_t)k[3])<<16); in hashlittle2()
569 a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle2()
572 case 8 : b+=k[2]+(((uint32_t)k[3])<<16); in hashlittle2()
573 a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle2()
576 case 6 : b+=k[2]; in hashlittle2()
577 a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle2()
580 case 4 : a+=k[0]+(((uint32_t)k[1])<<16); in hashlittle2()
583 case 2 : a+=k[0]; in hashlittle2()
591 const uint8_t *k = (const uint8_t *)key; in hashlittle2() local
596 a += k[0]; in hashlittle2()
597 a += ((uint32_t)k[1])<<8; in hashlittle2()
598 a += ((uint32_t)k[2])<<16; in hashlittle2()
599 a += ((uint32_t)k[3])<<24; in hashlittle2()
600 b += k[4]; in hashlittle2()
601 b += ((uint32_t)k[5])<<8; in hashlittle2()
602 b += ((uint32_t)k[6])<<16; in hashlittle2()
603 b += ((uint32_t)k[7])<<24; in hashlittle2()
604 c += k[8]; in hashlittle2()
605 c += ((uint32_t)k[9])<<8; in hashlittle2()
606 c += ((uint32_t)k[10])<<16; in hashlittle2()
607 c += ((uint32_t)k[11])<<24; in hashlittle2()
610 k += 12; in hashlittle2()
616 case 12: c+=((uint32_t)k[11])<<24; in hashlittle2()
617 case 11: c+=((uint32_t)k[10])<<16; in hashlittle2()
618 case 10: c+=((uint32_t)k[9])<<8; in hashlittle2()
619 case 9 : c+=k[8]; in hashlittle2()
620 case 8 : b+=((uint32_t)k[7])<<24; in hashlittle2()
621 case 7 : b+=((uint32_t)k[6])<<16; in hashlittle2()
622 case 6 : b+=((uint32_t)k[5])<<8; in hashlittle2()
623 case 5 : b+=k[4]; in hashlittle2()
624 case 4 : a+=((uint32_t)k[3])<<24; in hashlittle2()
625 case 3 : a+=((uint32_t)k[2])<<16; in hashlittle2()
626 case 2 : a+=((uint32_t)k[1])<<8; in hashlittle2()
627 case 1 : a+=k[0]; in hashlittle2()
655 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */ in hashbig() local
661 a += k[0]; in hashbig()
662 b += k[1]; in hashbig()
663 c += k[2]; in hashbig()
666 k += 3; in hashbig()
683 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashbig()
684 case 11: c+=k[2]&0xffffff00; b+=k[1]; a+=k[0]; break; in hashbig()
685 case 10: c+=k[2]&0xffff0000; b+=k[1]; a+=k[0]; break; in hashbig()
686 case 9 : c+=k[2]&0xff000000; b+=k[1]; a+=k[0]; break; in hashbig()
687 case 8 : b+=k[1]; a+=k[0]; break; in hashbig()
688 case 7 : b+=k[1]&0xffffff00; a+=k[0]; break; in hashbig()
689 case 6 : b+=k[1]&0xffff0000; a+=k[0]; break; in hashbig()
690 case 5 : b+=k[1]&0xff000000; a+=k[0]; break; in hashbig()
691 case 4 : a+=k[0]; break; in hashbig()
692 case 3 : a+=k[0]&0xffffff00; break; in hashbig()
693 case 2 : a+=k[0]&0xffff0000; break; in hashbig()
694 case 1 : a+=k[0]&0xff000000; break; in hashbig()
700 k8 = (const uint8_t *)k; in hashbig()
703 case 12: c+=k[2]; b+=k[1]; a+=k[0]; break; in hashbig()
707 case 8 : b+=k[1]; a+=k[0]; break; in hashbig()
711 case 4 : a+=k[0]; break; in hashbig()
721 const uint8_t *k = (const uint8_t *)key; in hashbig() local
726 a += ((uint32_t)k[0])<<24; in hashbig()
727 a += ((uint32_t)k[1])<<16; in hashbig()
728 a += ((uint32_t)k[2])<<8; in hashbig()
729 a += ((uint32_t)k[3]); in hashbig()
730 b += ((uint32_t)k[4])<<24; in hashbig()
731 b += ((uint32_t)k[5])<<16; in hashbig()
732 b += ((uint32_t)k[6])<<8; in hashbig()
733 b += ((uint32_t)k[7]); in hashbig()
734 c += ((uint32_t)k[8])<<24; in hashbig()
735 c += ((uint32_t)k[9])<<16; in hashbig()
736 c += ((uint32_t)k[10])<<8; in hashbig()
737 c += ((uint32_t)k[11]); in hashbig()
740 k += 12; in hashbig()
746 case 12: c+=k[11]; in hashbig()
747 case 11: c+=((uint32_t)k[10])<<8; in hashbig()
748 case 10: c+=((uint32_t)k[9])<<16; in hashbig()
749 case 9 : c+=((uint32_t)k[8])<<24; in hashbig()
750 case 8 : b+=k[7]; in hashbig()
751 case 7 : b+=((uint32_t)k[6])<<8; in hashbig()
752 case 6 : b+=((uint32_t)k[5])<<16; in hashbig()
753 case 5 : b+=((uint32_t)k[4])<<24; in hashbig()
754 case 4 : a+=k[3]; in hashbig()
755 case 3 : a+=((uint32_t)k[2])<<8; in hashbig()
756 case 2 : a+=((uint32_t)k[1])<<16; in hashbig()
757 case 1 : a+=((uint32_t)k[0])<<24; in hashbig()
796 uint32_t c[HASHSTATE], d[HASHSTATE], i=0, j=0, k, l, m=0, z; in driver2() local
815 for (k=0; k<MAXPAIR; k+=2) in driver2()
821 a[i] ^= (k<<j); in driver2()
822 a[i] ^= (k>>(8-j)); in driver2()
824 b[i] ^= ((k+1)<<j); in driver2()
825 b[i] ^= ((k+1)>>(8-j)); in driver2()
840 if (k>z) z=k; in driver2()
841 if (k==MAXPAIR) in driver2()