Lines Matching refs:k
151 uint32_t jlu32w(uint32_t h, const uint32_t *k, size_t size);
170 uint32_t jlu32w(uint32_t h, const uint32_t *k, size_t size) in jlu32w() argument
172 uint32_t a = _JLU3_INIT(h, (size * sizeof(*k))); in jlu32w()
176 if (k == NULL) in jlu32w()
181 a += k[0]; in jlu32w()
182 b += k[1]; in jlu32w()
183 c += k[2]; in jlu32w()
186 k += 3; in jlu32w()
191 case 3 : c+=k[2]; in jlu32w()
192 case 2 : b+=k[1]; in jlu32w()
193 case 1 : a+=k[0]; in jlu32w()
250 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */ in jlu32l() local
257 a += k[0]; in jlu32l()
258 b += k[1]; in jlu32l()
259 c += k[2]; in jlu32l()
262 k += 3; in jlu32l()
278 case 12: c += k[2]; b+=k[1]; a+=k[0]; break; in jlu32l()
279 case 11: c += k[2]&0xffffff; b+=k[1]; a+=k[0]; break; in jlu32l()
280 case 10: c += k[2]&0xffff; b+=k[1]; a+=k[0]; break; in jlu32l()
281 case 9: c += k[2]&0xff; b+=k[1]; a+=k[0]; break; in jlu32l()
282 case 8: b += k[1]; a+=k[0]; break; in jlu32l()
283 case 7: b += k[1]&0xffffff; a+=k[0]; break; in jlu32l()
284 case 6: b += k[1]&0xffff; a+=k[0]; break; in jlu32l()
285 case 5: b += k[1]&0xff; a+=k[0]; break; in jlu32l()
286 case 4: a += k[0]; break; in jlu32l()
287 case 3: a += k[0]&0xffffff; break; in jlu32l()
288 case 2: a += k[0]&0xffff; break; in jlu32l()
289 case 1: a += k[0]&0xff; break; in jlu32l()
295 k8 = (const uint8_t *)k; in jlu32l()
297 case 12: c += k[2]; b+=k[1]; a+=k[0] break; in jlu32l()
301 case 8: b += k[1]; a+=k[0]; break; in jlu32l()
305 case 4: a += k[0]; break; in jlu32l()
315 const uint16_t *k = (const uint16_t *)key; /* read 16-bit chunks */ in jlu32l() local
320 a += k[0] + (((uint32_t)k[1])<<16); in jlu32l()
321 b += k[2] + (((uint32_t)k[3])<<16); in jlu32l()
322 c += k[4] + (((uint32_t)k[5])<<16); in jlu32l()
325 k += 6; in jlu32l()
329 k8 = (const uint8_t *)k; in jlu32l()
332 c += k[4]+(((uint32_t)k[5])<<16); in jlu32l()
333 b += k[2]+(((uint32_t)k[3])<<16); in jlu32l()
334 a += k[0]+(((uint32_t)k[1])<<16); in jlu32l()
340 c += (uint32_t)k[4]; in jlu32l()
341 b += k[2]+(((uint32_t)k[3])<<16); in jlu32l()
342 a += k[0]+(((uint32_t)k[1])<<16); in jlu32l()
348 b += k[2]+(((uint32_t)k[3])<<16); in jlu32l()
349 a += k[0]+(((uint32_t)k[1])<<16); in jlu32l()
355 b += (uint32_t)k[2]; in jlu32l()
356 a += k[0]+(((uint32_t)k[1])<<16); in jlu32l()
362 a += k[0]+(((uint32_t)k[1])<<16); in jlu32l()
368 a += (uint32_t)k[0]; in jlu32l()
378 const uint8_t *k = (const uint8_t *)key; in jlu32l() local
382 a += (uint32_t)k[0]; in jlu32l()
383 a += ((uint32_t)k[1])<<8; in jlu32l()
384 a += ((uint32_t)k[2])<<16; in jlu32l()
385 a += ((uint32_t)k[3])<<24; in jlu32l()
386 b += (uint32_t)k[4]; in jlu32l()
387 b += ((uint32_t)k[5])<<8; in jlu32l()
388 b += ((uint32_t)k[6])<<16; in jlu32l()
389 b += ((uint32_t)k[7])<<24; in jlu32l()
390 c += (uint32_t)k[8]; in jlu32l()
391 c += ((uint32_t)k[9])<<8; in jlu32l()
392 c += ((uint32_t)k[10])<<16; in jlu32l()
393 c += ((uint32_t)k[11])<<24; in jlu32l()
396 k += 12; in jlu32l()
401 case 12: c += ((uint32_t)k[11])<<24; /* fallthrough */ in jlu32l()
402 case 11: c += ((uint32_t)k[10])<<16; /* fallthrough */ in jlu32l()
403 case 10: c += ((uint32_t)k[9])<<8; /* fallthrough */ in jlu32l()
404 case 9: c += (uint32_t)k[8]; /* fallthrough */ in jlu32l()
405 case 8: b += ((uint32_t)k[7])<<24; /* fallthrough */ in jlu32l()
406 case 7: b += ((uint32_t)k[6])<<16; /* fallthrough */ in jlu32l()
407 case 6: b += ((uint32_t)k[5])<<8; /* fallthrough */ in jlu32l()
408 case 5: b += (uint32_t)k[4]; /* fallthrough */ in jlu32l()
409 case 4: a += ((uint32_t)k[3])<<24; /* fallthrough */ in jlu32l()
410 case 3: a += ((uint32_t)k[2])<<16; /* fallthrough */ in jlu32l()
411 case 2: a += ((uint32_t)k[1])<<8; /* fallthrough */ in jlu32l()
412 case 1: a += (uint32_t)k[0]; in jlu32l()
457 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */ in jlu32lpair() local
464 a += k[0]; in jlu32lpair()
465 b += k[1]; in jlu32lpair()
466 c += k[2]; in jlu32lpair()
469 k += 3; in jlu32lpair()
484 case 12: c += k[2]; b+=k[1]; a+=k[0]; break; in jlu32lpair()
485 case 11: c += k[2]&0xffffff; b+=k[1]; a+=k[0]; break; in jlu32lpair()
486 case 10: c += k[2]&0xffff; b+=k[1]; a+=k[0]; break; in jlu32lpair()
487 case 9: c += k[2]&0xff; b+=k[1]; a+=k[0]; break; in jlu32lpair()
488 case 8: b += k[1]; a+=k[0]; break; in jlu32lpair()
489 case 7: b += k[1]&0xffffff; a+=k[0]; break; in jlu32lpair()
490 case 6: b += k[1]&0xffff; a+=k[0]; break; in jlu32lpair()
491 case 5: b += k[1]&0xff; a+=k[0]; break; in jlu32lpair()
492 case 4: a += k[0]; break; in jlu32lpair()
493 case 3: a += k[0]&0xffffff; break; in jlu32lpair()
494 case 2: a += k[0]&0xffff; break; in jlu32lpair()
495 case 1: a += k[0]&0xff; break; in jlu32lpair()
501 k8 = (const uint8_t *)k; in jlu32lpair()
503 case 12: c += k[2]; b+=k[1]; a+=k[0]; break; in jlu32lpair()
507 case 8: b += k[1]; a+=k[0]; break; in jlu32lpair()
511 case 4: a += k[0]; break; in jlu32lpair()
521 const uint16_t *k = (const uint16_t *)key; /* read 16-bit chunks */ in jlu32lpair() local
526 a += k[0] + (((uint32_t)k[1])<<16); in jlu32lpair()
527 b += k[2] + (((uint32_t)k[3])<<16); in jlu32lpair()
528 c += k[4] + (((uint32_t)k[5])<<16); in jlu32lpair()
531 k += 6; in jlu32lpair()
535 k8 = (const uint8_t *)k; in jlu32lpair()
538 c += k[4]+(((uint32_t)k[5])<<16); in jlu32lpair()
539 b += k[2]+(((uint32_t)k[3])<<16); in jlu32lpair()
540 a += k[0]+(((uint32_t)k[1])<<16); in jlu32lpair()
546 c += k[4]; in jlu32lpair()
547 b += k[2]+(((uint32_t)k[3])<<16); in jlu32lpair()
548 a += k[0]+(((uint32_t)k[1])<<16); in jlu32lpair()
554 b += k[2]+(((uint32_t)k[3])<<16); in jlu32lpair()
555 a += k[0]+(((uint32_t)k[1])<<16); in jlu32lpair()
561 b += k[2]; in jlu32lpair()
562 a += k[0]+(((uint32_t)k[1])<<16); in jlu32lpair()
568 a += k[0]+(((uint32_t)k[1])<<16); in jlu32lpair()
574 a += k[0]; in jlu32lpair()
584 const uint8_t *k = (const uint8_t *)key; in jlu32lpair() local
588 a += k[0]; in jlu32lpair()
589 a += ((uint32_t)k[1])<<8; in jlu32lpair()
590 a += ((uint32_t)k[2])<<16; in jlu32lpair()
591 a += ((uint32_t)k[3])<<24; in jlu32lpair()
592 b += k[4]; in jlu32lpair()
593 b += ((uint32_t)k[5])<<8; in jlu32lpair()
594 b += ((uint32_t)k[6])<<16; in jlu32lpair()
595 b += ((uint32_t)k[7])<<24; in jlu32lpair()
596 c += k[8]; in jlu32lpair()
597 c += ((uint32_t)k[9])<<8; in jlu32lpair()
598 c += ((uint32_t)k[10])<<16; in jlu32lpair()
599 c += ((uint32_t)k[11])<<24; in jlu32lpair()
602 k += 12; in jlu32lpair()
607 case 12: c += ((uint32_t)k[11])<<24; /* fallthrough */ in jlu32lpair()
608 case 11: c += ((uint32_t)k[10])<<16; /* fallthrough */ in jlu32lpair()
609 case 10: c += ((uint32_t)k[9])<<8; /* fallthrough */ in jlu32lpair()
610 case 9: c += k[8]; /* fallthrough */ in jlu32lpair()
611 case 8: b += ((uint32_t)k[7])<<24; /* fallthrough */ in jlu32lpair()
612 case 7: b += ((uint32_t)k[6])<<16; /* fallthrough */ in jlu32lpair()
613 case 6: b += ((uint32_t)k[5])<<8; /* fallthrough */ in jlu32lpair()
614 case 5: b += k[4]; /* fallthrough */ in jlu32lpair()
615 case 4: a += ((uint32_t)k[3])<<24; /* fallthrough */ in jlu32lpair()
616 case 3: a += ((uint32_t)k[2])<<16; /* fallthrough */ in jlu32lpair()
617 case 2: a += ((uint32_t)k[1])<<8; /* fallthrough */ in jlu32lpair()
618 case 1: a += k[0]; in jlu32lpair()
659 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */ in jlu32b() local
666 a += k[0]; in jlu32b()
667 b += k[1]; in jlu32b()
668 c += k[2]; in jlu32b()
671 k += 3; in jlu32b()
687 case 12: c += k[2]; b+=k[1]; a+=k[0]; break; in jlu32b()
688 case 11: c += k[2]&0xffffff00; b+=k[1]; a+=k[0]; break; in jlu32b()
689 case 10: c += k[2]&0xffff0000; b+=k[1]; a+=k[0]; break; in jlu32b()
690 case 9: c += k[2]&0xff000000; b+=k[1]; a+=k[0]; break; in jlu32b()
691 case 8: b += k[1]; a+=k[0]; break; in jlu32b()
692 case 7: b += k[1]&0xffffff00; a+=k[0]; break; in jlu32b()
693 case 6: b += k[1]&0xffff0000; a+=k[0]; break; in jlu32b()
694 case 5: b += k[1]&0xff000000; a+=k[0]; break; in jlu32b()
695 case 4: a += k[0]; break; in jlu32b()
696 case 3: a += k[0]&0xffffff00; break; in jlu32b()
697 case 2: a += k[0]&0xffff0000; break; in jlu32b()
698 case 1: a += k[0]&0xff000000; break; in jlu32b()
704 k8 = (const uint8_t *)k; in jlu32b()
706 case 12: c += k[2]; b+=k[1]; a+=k[0]; break; in jlu32b()
710 case 8: b += k[1]; a+=k[0]; break; in jlu32b()
714 case 4: a += k[0]; break; in jlu32b()
724 const uint8_t *k = (const uint8_t *)key; in jlu32b() local
728 a += ((uint32_t)k[0])<<24; in jlu32b()
729 a += ((uint32_t)k[1])<<16; in jlu32b()
730 a += ((uint32_t)k[2])<<8; in jlu32b()
731 a += ((uint32_t)k[3]); in jlu32b()
732 b += ((uint32_t)k[4])<<24; in jlu32b()
733 b += ((uint32_t)k[5])<<16; in jlu32b()
734 b += ((uint32_t)k[6])<<8; in jlu32b()
735 b += ((uint32_t)k[7]); in jlu32b()
736 c += ((uint32_t)k[8])<<24; in jlu32b()
737 c += ((uint32_t)k[9])<<16; in jlu32b()
738 c += ((uint32_t)k[10])<<8; in jlu32b()
739 c += ((uint32_t)k[11]); in jlu32b()
742 k += 12; in jlu32b()
747 case 12: c += k[11]; /* fallthrough */ in jlu32b()
748 case 11: c += ((uint32_t)k[10])<<8; /* fallthrough */ in jlu32b()
749 case 10: c += ((uint32_t)k[9])<<16; /* fallthrough */ in jlu32b()
750 case 9: c += ((uint32_t)k[8])<<24; /* fallthrough */ in jlu32b()
751 case 8: b += k[7]; /* fallthrough */ in jlu32b()
752 case 7: b += ((uint32_t)k[6])<<8; /* fallthrough */ in jlu32b()
753 case 6: b += ((uint32_t)k[5])<<16; /* fallthrough */ in jlu32b()
754 case 5: b += ((uint32_t)k[4])<<24; /* fallthrough */ in jlu32b()
755 case 4: a += k[3]; /* fallthrough */ in jlu32b()
756 case 3: a += ((uint32_t)k[2])<<8; /* fallthrough */ in jlu32b()
757 case 2: a += ((uint32_t)k[1])<<16; /* fallthrough */ in jlu32b()
758 case 1: a += ((uint32_t)k[0])<<24; /* fallthrough */ in jlu32b()
799 uint32_t c[HASHSTATE], d[HASHSTATE], i=0, j=0, k, l, m=0, z; in driver2() local
814 for (k=0; k<MAXPAIR; k+=2) { in driver2()
819 a[i] ^= (k<<j); in driver2()
820 a[i] ^= (k>>(8-j)); in driver2()
822 b[i] ^= ((k+1)<<j); in driver2()
823 b[i] ^= ((k+1)>>(8-j)); in driver2()
837 if (k>z) z=k; in driver2()
838 if (k == MAXPAIR) { in driver2()