@@ -466,9 +466,9 @@ hash_any(register const unsigned char *k, register int keylen)
466466 /* fall through */
467467 case 9 :
468468 c += ((uint32 ) k [8 ] << 24 );
469- /* the lowest byte of c is reserved for the length */
470469 /* fall through */
471470 case 8 :
471+ /* the lowest byte of c is reserved for the length */
472472 b += ka [1 ];
473473 a += ka [0 ];
474474 break ;
@@ -505,9 +505,9 @@ hash_any(register const unsigned char *k, register int keylen)
505505 /* fall through */
506506 case 9 :
507507 c += ((uint32 ) k [8 ] << 8 );
508- /* the lowest byte of c is reserved for the length */
509508 /* fall through */
510509 case 8 :
510+ /* the lowest byte of c is reserved for the length */
511511 b += ka [1 ];
512512 a += ka [0 ];
513513 break ;
@@ -558,57 +558,77 @@ hash_any(register const unsigned char *k, register int keylen)
558558
559559 /* handle the last 11 bytes */
560560#ifdef WORDS_BIGENDIAN
561- switch (len ) /* all the case statements fall through */
561+ switch (len )
562562 {
563563 case 11 :
564564 c += ((uint32 ) k [10 ] << 8 );
565+ /* fall through */
565566 case 10 :
566567 c += ((uint32 ) k [9 ] << 16 );
568+ /* fall through */
567569 case 9 :
568570 c += ((uint32 ) k [8 ] << 24 );
569- /* the lowest byte of c is reserved for the length */
571+ /* fall through */
570572 case 8 :
573+ /* the lowest byte of c is reserved for the length */
571574 b += k [7 ];
575+ /* fall through */
572576 case 7 :
573577 b += ((uint32 ) k [6 ] << 8 );
578+ /* fall through */
574579 case 6 :
575580 b += ((uint32 ) k [5 ] << 16 );
581+ /* fall through */
576582 case 5 :
577583 b += ((uint32 ) k [4 ] << 24 );
584+ /* fall through */
578585 case 4 :
579586 a += k [3 ];
587+ /* fall through */
580588 case 3 :
581589 a += ((uint32 ) k [2 ] << 8 );
590+ /* fall through */
582591 case 2 :
583592 a += ((uint32 ) k [1 ] << 16 );
593+ /* fall through */
584594 case 1 :
585595 a += ((uint32 ) k [0 ] << 24 );
586596 /* case 0: nothing left to add */
587597 }
588598#else /* !WORDS_BIGENDIAN */
589- switch (len ) /* all the case statements fall through */
599+ switch (len )
590600 {
591601 case 11 :
592602 c += ((uint32 ) k [10 ] << 24 );
603+ /* fall through */
593604 case 10 :
594605 c += ((uint32 ) k [9 ] << 16 );
606+ /* fall through */
595607 case 9 :
596608 c += ((uint32 ) k [8 ] << 8 );
597- /* the lowest byte of c is reserved for the length */
609+ /* fall through */
598610 case 8 :
611+ /* the lowest byte of c is reserved for the length */
599612 b += ((uint32 ) k [7 ] << 24 );
613+ /* fall through */
600614 case 7 :
601615 b += ((uint32 ) k [6 ] << 16 );
616+ /* fall through */
602617 case 6 :
603618 b += ((uint32 ) k [5 ] << 8 );
619+ /* fall through */
604620 case 5 :
605621 b += k [4 ];
622+ /* fall through */
606623 case 4 :
607624 a += ((uint32 ) k [3 ] << 24 );
625+ /* fall through */
608626 case 3 :
609627 a += ((uint32 ) k [2 ] << 16 );
628+ /* fall through */
610629 case 2 :
611630 a += ((uint32 ) k [1 ] << 8 );
631+ /* fall through */
612632 case 1 :
613633 a += k [0 ];
614634 /* case 0: nothing left to add */
@@ -686,9 +706,9 @@ hash_any_extended(register const unsigned char *k, register int keylen,
686706 /* fall through */
687707 case 9 :
688708 c += ((uint32 ) k [8 ] << 24 );
689- /* the lowest byte of c is reserved for the length */
690709 /* fall through */
691710 case 8 :
711+ /* the lowest byte of c is reserved for the length */
692712 b += ka [1 ];
693713 a += ka [0 ];
694714 break ;
@@ -725,9 +745,9 @@ hash_any_extended(register const unsigned char *k, register int keylen,
725745 /* fall through */
726746 case 9 :
727747 c += ((uint32 ) k [8 ] << 8 );
728- /* the lowest byte of c is reserved for the length */
729748 /* fall through */
730749 case 8 :
750+ /* the lowest byte of c is reserved for the length */
731751 b += ka [1 ];
732752 a += ka [0 ];
733753 break ;
@@ -778,57 +798,77 @@ hash_any_extended(register const unsigned char *k, register int keylen,
778798
779799 /* handle the last 11 bytes */
780800#ifdef WORDS_BIGENDIAN
781- switch (len ) /* all the case statements fall through */
801+ switch (len )
782802 {
783803 case 11 :
784804 c += ((uint32 ) k [10 ] << 8 );
805+ /* fall through */
785806 case 10 :
786807 c += ((uint32 ) k [9 ] << 16 );
808+ /* fall through */
787809 case 9 :
788810 c += ((uint32 ) k [8 ] << 24 );
789- /* the lowest byte of c is reserved for the length */
811+ /* fall through */
790812 case 8 :
813+ /* the lowest byte of c is reserved for the length */
791814 b += k [7 ];
815+ /* fall through */
792816 case 7 :
793817 b += ((uint32 ) k [6 ] << 8 );
818+ /* fall through */
794819 case 6 :
795820 b += ((uint32 ) k [5 ] << 16 );
821+ /* fall through */
796822 case 5 :
797823 b += ((uint32 ) k [4 ] << 24 );
824+ /* fall through */
798825 case 4 :
799826 a += k [3 ];
827+ /* fall through */
800828 case 3 :
801829 a += ((uint32 ) k [2 ] << 8 );
830+ /* fall through */
802831 case 2 :
803832 a += ((uint32 ) k [1 ] << 16 );
833+ /* fall through */
804834 case 1 :
805835 a += ((uint32 ) k [0 ] << 24 );
806836 /* case 0: nothing left to add */
807837 }
808838#else /* !WORDS_BIGENDIAN */
809- switch (len ) /* all the case statements fall through */
839+ switch (len )
810840 {
811841 case 11 :
812842 c += ((uint32 ) k [10 ] << 24 );
843+ /* fall through */
813844 case 10 :
814845 c += ((uint32 ) k [9 ] << 16 );
846+ /* fall through */
815847 case 9 :
816848 c += ((uint32 ) k [8 ] << 8 );
817- /* the lowest byte of c is reserved for the length */
849+ /* fall through */
818850 case 8 :
851+ /* the lowest byte of c is reserved for the length */
819852 b += ((uint32 ) k [7 ] << 24 );
853+ /* fall through */
820854 case 7 :
821855 b += ((uint32 ) k [6 ] << 16 );
856+ /* fall through */
822857 case 6 :
823858 b += ((uint32 ) k [5 ] << 8 );
859+ /* fall through */
824860 case 5 :
825861 b += k [4 ];
862+ /* fall through */
826863 case 4 :
827864 a += ((uint32 ) k [3 ] << 24 );
865+ /* fall through */
828866 case 3 :
829867 a += ((uint32 ) k [2 ] << 16 );
868+ /* fall through */
830869 case 2 :
831870 a += ((uint32 ) k [1 ] << 8 );
871+ /* fall through */
832872 case 1 :
833873 a += k [0 ];
834874 /* case 0: nothing left to add */
0 commit comments