• Home
  • Raw
  • Download

Lines Matching refs:X

470 #define copyFromState(X, state) \
471 X##ba = state[ 0]; \
472 X##be = state[ 1]; \
473 X##bi = state[ 2]; \
474 X##bo = state[ 3]; \
475 X##bu = state[ 4]; \
476 X##ga = state[ 5]; \
477 X##ge = state[ 6]; \
478 X##gi = state[ 7]; \
479 X##go = state[ 8]; \
480 X##gu = state[ 9]; \
481 X##ka = state[10]; \
482 X##ke = state[11]; \
483 X##ki = state[12]; \
484 X##ko = state[13]; \
485 X##ku = state[14]; \
486 X##ma = state[15]; \
487 X##me = state[16]; \
488 X##mi = state[17]; \
489 X##mo = state[18]; \
490 X##mu = state[19]; \
491 X##sa = state[20]; \
492 X##se = state[21]; \
493 X##si = state[22]; \
494 X##so = state[23]; \
495 X##su = state[24]; \
497 #define copyToState(state, X) \
498 state[ 0] = X##ba; \
499 state[ 1] = X##be; \
500 state[ 2] = X##bi; \
501 state[ 3] = X##bo; \
502 state[ 4] = X##bu; \
503 state[ 5] = X##ga; \
504 state[ 6] = X##ge; \
505 state[ 7] = X##gi; \
506 state[ 8] = X##go; \
507 state[ 9] = X##gu; \
508 state[10] = X##ka; \
509 state[11] = X##ke; \
510 state[12] = X##ki; \
511 state[13] = X##ko; \
512 state[14] = X##ku; \
513 state[15] = X##ma; \
514 state[16] = X##me; \
515 state[17] = X##mi; \
516 state[18] = X##mo; \
517 state[19] = X##mu; \
518 state[20] = X##sa; \
519 state[21] = X##se; \
520 state[22] = X##si; \
521 state[23] = X##so; \
522 state[24] = X##su; \
524 #define copyStateVariables(X, Y) \
525 X##ba = Y##ba; \
526 X##be = Y##be; \
527 X##bi = Y##bi; \
528 X##bo = Y##bo; \
529 X##bu = Y##bu; \
530 X##ga = Y##ga; \
531 X##ge = Y##ge; \
532 X##gi = Y##gi; \
533 X##go = Y##go; \
534 X##gu = Y##gu; \
535 X##ka = Y##ka; \
536 X##ke = Y##ke; \
537 X##ki = Y##ki; \
538 X##ko = Y##ko; \
539 X##ku = Y##ku; \
540 X##ma = Y##ma; \
541 X##me = Y##me; \
542 X##mi = Y##mi; \
543 X##mo = Y##mo; \
544 X##mu = Y##mu; \
545 X##sa = Y##sa; \
546 X##se = Y##se; \
547 X##si = Y##si; \
548 X##so = Y##so; \
549 X##su = Y##su; \
551 #define copyFromStateAndAdd(X, state, input, laneCount) \
557 X##ba = state[ 0]; \
560 X##ba = state[ 0]^input[ 0]; \
562 X##be = state[ 1]; \
563 X##bi = state[ 2]; \
566 X##ba = state[ 0]^input[ 0]; \
567 X##be = state[ 1]^input[ 1]; \
569 X##bi = state[ 2]; \
572 X##bi = state[ 2]^input[ 2]; \
575 X##bo = state[ 3]; \
576 X##bu = state[ 4]; \
577 X##ga = state[ 5]; \
578 X##ge = state[ 6]; \
581 X##ba = state[ 0]^input[ 0]; \
582 X##be = state[ 1]^input[ 1]; \
583 X##bi = state[ 2]^input[ 2]; \
584 X##bo = state[ 3]^input[ 3]; \
587 X##bu = state[ 4]; \
590 X##bu = state[ 4]^input[ 4]; \
592 X##ga = state[ 5]; \
593 X##ge = state[ 6]; \
596 X##bu = state[ 4]^input[ 4]; \
597 X##ga = state[ 5]^input[ 5]; \
599 X##ge = state[ 6]; \
602 X##ge = state[ 6]^input[ 6]; \
606 X##gi = state[ 7]; \
607 X##go = state[ 8]; \
608 X##gu = state[ 9]; \
609 X##ka = state[10]; \
610 X##ke = state[11]; \
611 X##ki = state[12]; \
612 X##ko = state[13]; \
613 X##ku = state[14]; \
616 X##ba = state[ 0]^input[ 0]; \
617 X##be = state[ 1]^input[ 1]; \
618 X##bi = state[ 2]^input[ 2]; \
619 X##bo = state[ 3]^input[ 3]; \
620 X##bu = state[ 4]^input[ 4]; \
621 X##ga = state[ 5]^input[ 5]; \
622 X##ge = state[ 6]^input[ 6]; \
623 X##gi = state[ 7]^input[ 7]; \
627 X##go = state[ 8]; \
630 X##go = state[ 8]^input[ 8]; \
632 X##gu = state[ 9]; \
633 X##ka = state[10]; \
636 X##go = state[ 8]^input[ 8]; \
637 X##gu = state[ 9]^input[ 9]; \
639 X##ka = state[10]; \
642 X##ka = state[10]^input[10]; \
645 X##ke = state[11]; \
646 X##ki = state[12]; \
647 X##ko = state[13]; \
648 X##ku = state[14]; \
651 X##go = state[ 8]^input[ 8]; \
652 X##gu = state[ 9]^input[ 9]; \
653 X##ka = state[10]^input[10]; \
654 X##ke = state[11]^input[11]; \
657 X##ki = state[12]; \
660 X##ki = state[12]^input[12]; \
662 X##ko = state[13]; \
663 X##ku = state[14]; \
666 X##ki = state[12]^input[12]; \
667 X##ko = state[13]^input[13]; \
669 X##ku = state[14]; \
672 X##ku = state[14]^input[14]; \
677 X##ma = state[15]; \
678 X##me = state[16]; \
679 X##mi = state[17]; \
680 X##mo = state[18]; \
681 X##mu = state[19]; \
682 X##sa = state[20]; \
683 X##se = state[21]; \
684 X##si = state[22]; \
685 X##so = state[23]; \
686 X##su = state[24]; \
689 X##ba = state[ 0]^input[ 0]; \
690 X##be = state[ 1]^input[ 1]; \
691 X##bi = state[ 2]^input[ 2]; \
692 X##bo = state[ 3]^input[ 3]; \
693 X##bu = state[ 4]^input[ 4]; \
694 X##ga = state[ 5]^input[ 5]; \
695 X##ge = state[ 6]^input[ 6]; \
696 X##gi = state[ 7]^input[ 7]; \
697 X##go = state[ 8]^input[ 8]; \
698 X##gu = state[ 9]^input[ 9]; \
699 X##ka = state[10]^input[10]; \
700 X##ke = state[11]^input[11]; \
701 X##ki = state[12]^input[12]; \
702 X##ko = state[13]^input[13]; \
703 X##ku = state[14]^input[14]; \
704 X##ma = state[15]^input[15]; \
709 X##me = state[16]; \
712 X##me = state[16]^input[16]; \
714 X##mi = state[17]; \
715 X##mo = state[18]; \
718 X##me = state[16]^input[16]; \
719 X##mi = state[17]^input[17]; \
721 X##mo = state[18]; \
724 X##mo = state[18]^input[18]; \
727 X##mu = state[19]; \
728 X##sa = state[20]; \
729 X##se = state[21]; \
730 X##si = state[22]; \
733 X##me = state[16]^input[16]; \
734 X##mi = state[17]^input[17]; \
735 X##mo = state[18]^input[18]; \
736 X##mu = state[19]^input[19]; \
739 X##sa = state[20]; \
742 X##sa = state[20]^input[20]; \
744 X##se = state[21]; \
745 X##si = state[22]; \
748 X##sa = state[20]^input[20]; \
749 X##se = state[21]^input[21]; \
751 X##si = state[22]; \
754 X##si = state[22]^input[22]; \
758 X##so = state[23]; \
759 X##su = state[24]; \
762 X##me = state[16]^input[16]; \
763 X##mi = state[17]^input[17]; \
764 X##mo = state[18]^input[18]; \
765 X##mu = state[19]^input[19]; \
766 X##sa = state[20]^input[20]; \
767 X##se = state[21]^input[21]; \
768 X##si = state[22]^input[22]; \
769 X##so = state[23]^input[23]; \
771 X##su = state[24]; \
774 X##su = state[24]^input[24]; \
779 #define addInput(X, input, laneCount) \
781 X##ba ^= input[ 0]; \
782 X##be ^= input[ 1]; \
783 X##bi ^= input[ 2]; \
784 X##bo ^= input[ 3]; \
785 X##bu ^= input[ 4]; \
786 X##ga ^= input[ 5]; \
787 X##ge ^= input[ 6]; \
788 X##gi ^= input[ 7]; \
789 X##go ^= input[ 8]; \
790 X##gu ^= input[ 9]; \
791 X##ka ^= input[10]; \
792 X##ke ^= input[11]; \
793 X##ki ^= input[12]; \
794 X##ko ^= input[13]; \
795 X##ku ^= input[14]; \
796 X##ma ^= input[15]; \
797 X##me ^= input[16]; \
798 X##mi ^= input[17]; \
799 X##mo ^= input[18]; \
800 X##mu ^= input[19]; \
801 X##sa ^= input[20]; \
810 X##ba ^= input[ 0]; \
814 X##ba ^= input[ 0]; \
815 X##be ^= input[ 1]; \
819 X##bi ^= input[ 2]; \
824 X##ba ^= input[ 0]; \
825 X##be ^= input[ 1]; \
826 X##bi ^= input[ 2]; \
827 X##bo ^= input[ 3]; \
832 X##bu ^= input[ 4]; \
836 X##bu ^= input[ 4]; \
837 X##ga ^= input[ 5]; \
841 X##ge ^= input[ 6]; \
847 X##ba ^= input[ 0]; \
848 X##be ^= input[ 1]; \
849 X##bi ^= input[ 2]; \
850 X##bo ^= input[ 3]; \
851 X##bu ^= input[ 4]; \
852 X##ga ^= input[ 5]; \
853 X##ge ^= input[ 6]; \
854 X##gi ^= input[ 7]; \
860 X##go ^= input[ 8]; \
864 X##go ^= input[ 8]; \
865 X##gu ^= input[ 9]; \
869 X##ka ^= input[10]; \
874 X##go ^= input[ 8]; \
875 X##gu ^= input[ 9]; \
876 X##ka ^= input[10]; \
877 X##ke ^= input[11]; \
882 X##ki ^= input[12]; \
886 X##ki ^= input[12]; \
887 X##ko ^= input[13]; \
891 X##ku ^= input[14]; \
898 X##ba ^= input[ 0]; \
899 X##be ^= input[ 1]; \
900 X##bi ^= input[ 2]; \
901 X##bo ^= input[ 3]; \
902 X##bu ^= input[ 4]; \
903 X##ga ^= input[ 5]; \
904 X##ge ^= input[ 6]; \
905 X##gi ^= input[ 7]; \
906 X##go ^= input[ 8]; \
907 X##gu ^= input[ 9]; \
908 X##ka ^= input[10]; \
909 X##ke ^= input[11]; \
910 X##ki ^= input[12]; \
911 X##ko ^= input[13]; \
912 X##ku ^= input[14]; \
913 X##ma ^= input[15]; \
920 X##me ^= input[16]; \
924 X##me ^= input[16]; \
925 X##mi ^= input[17]; \
929 X##mo ^= input[18]; \
934 X##me ^= input[16]; \
935 X##mi ^= input[17]; \
936 X##mo ^= input[18]; \
937 X##mu ^= input[19]; \
942 X##sa ^= input[20]; \
946 X##sa ^= input[20]; \
947 X##se ^= input[21]; \
951 X##si ^= input[22]; \
957 X##me ^= input[16]; \
958 X##mi ^= input[17]; \
959 X##mo ^= input[18]; \
960 X##mu ^= input[19]; \
961 X##sa ^= input[20]; \
962 X##se ^= input[21]; \
963 X##si ^= input[22]; \
964 X##so ^= input[23]; \
968 X##su ^= input[24]; \
975 #define copyToStateAndOutput(X, state, output, laneCount) \
980 state[ 0] = X##ba; \
982 output[ 0] = X##ba; \
984 state[ 1] = X##be; \
985 state[ 2] = X##bi; \
988 state[ 0] = X##ba; \
989 output[ 0] = X##ba; \
990 state[ 1] = X##be; \
991 output[ 1] = ~X##be; \
992 state[ 2] = X##bi; \
994 output[ 2] = ~X##bi; \
997 state[ 3] = X##bo; \
998 state[ 4] = X##bu; \
999 state[ 5] = X##ga; \
1000 state[ 6] = X##ge; \
1003 state[ 0] = X##ba; \
1004 output[ 0] = X##ba; \
1005 state[ 1] = X##be; \
1006 output[ 1] = ~X##be; \
1007 state[ 2] = X##bi; \
1008 output[ 2] = ~X##bi; \
1009 state[ 3] = X##bo; \
1010 output[ 3] = X##bo; \
1012 state[ 4] = X##bu; \
1014 output[ 4] = X##bu; \
1016 state[ 5] = X##ga; \
1017 state[ 6] = X##ge; \
1020 state[ 4] = X##bu; \
1021 output[ 4] = X##bu; \
1022 state[ 5] = X##ga; \
1023 output[ 5] = X##ga; \
1024 state[ 6] = X##ge; \
1026 output[ 6] = X##ge; \
1030 state[ 7] = X##gi; \
1031 state[ 8] = X##go; \
1032 state[ 9] = X##gu; \
1033 state[10] = X##ka; \
1034 state[11] = X##ke; \
1035 state[12] = X##ki; \
1036 state[13] = X##ko; \
1037 state[14] = X##ku; \
1040 state[ 0] = X##ba; \
1041 output[ 0] = X##ba; \
1042 state[ 1] = X##be; \
1043 output[ 1] = ~X##be; \
1044 state[ 2] = X##bi; \
1045 output[ 2] = ~X##bi; \
1046 state[ 3] = X##bo; \
1047 output[ 3] = X##bo; \
1048 state[ 4] = X##bu; \
1049 output[ 4] = X##bu; \
1050 state[ 5] = X##ga; \
1051 output[ 5] = X##ga; \
1052 state[ 6] = X##ge; \
1053 output[ 6] = X##ge; \
1054 state[ 7] = X##gi; \
1055 output[ 7] = X##gi; \
1058 state[ 8] = X##go; \
1060 output[ 8] = ~X##go; \
1062 state[ 9] = X##gu; \
1063 state[10] = X##ka; \
1066 state[ 8] = X##go; \
1067 output[ 8] = ~X##go; \
1068 state[ 9] = X##gu; \
1069 output[ 9] = X##gu; \
1070 state[10] = X##ka; \
1072 output[10] = X##ka; \
1075 state[11] = X##ke; \
1076 state[12] = X##ki; \
1077 state[13] = X##ko; \
1078 state[14] = X##ku; \
1081 state[ 8] = X##go; \
1082 output[ 8] = ~X##go; \
1083 state[ 9] = X##gu; \
1084 output[ 9] = X##gu; \
1085 state[10] = X##ka; \
1086 output[10] = X##ka; \
1087 state[11] = X##ke; \
1088 output[11] = X##ke; \
1090 state[12] = X##ki; \
1092 output[12] = ~X##ki; \
1094 state[13] = X##ko; \
1095 state[14] = X##ku; \
1098 state[12] = X##ki; \
1099 output[12] = ~X##ki; \
1100 state[13] = X##ko; \
1101 output[13] = X##ko; \
1102 state[14] = X##ku; \
1104 output[14] = X##ku; \
1109 state[15] = X##ma; \
1110 state[16] = X##me; \
1111 state[17] = X##mi; \
1112 state[18] = X##mo; \
1113 state[19] = X##mu; \
1114 state[20] = X##sa; \
1115 state[21] = X##se; \
1116 state[22] = X##si; \
1117 state[23] = X##so; \
1118 state[24] = X##su; \
1121 state[ 0] = X##ba; \
1122 output[ 0] = X##ba; \
1123 state[ 1] = X##be; \
1124 output[ 1] = ~X##be; \
1125 state[ 2] = X##bi; \
1126 output[ 2] = ~X##bi; \
1127 state[ 3] = X##bo; \
1128 output[ 3] = X##bo; \
1129 state[ 4] = X##bu; \
1130 output[ 4] = X##bu; \
1131 state[ 5] = X##ga; \
1132 output[ 5] = X##ga; \
1133 state[ 6] = X##ge; \
1134 output[ 6] = X##ge; \
1135 state[ 7] = X##gi; \
1136 output[ 7] = X##gi; \
1137 state[ 8] = X##go; \
1138 output[ 8] = ~X##go; \
1139 state[ 9] = X##gu; \
1140 output[ 9] = X##gu; \
1141 state[10] = X##ka; \
1142 output[10] = X##ka; \
1143 state[11] = X##ke; \
1144 output[11] = X##ke; \
1145 state[12] = X##ki; \
1146 output[12] = ~X##ki; \
1147 state[13] = X##ko; \
1148 output[13] = X##ko; \
1149 state[14] = X##ku; \
1150 output[14] = X##ku; \
1151 state[15] = X##ma; \
1152 output[15] = X##ma; \
1156 state[16] = X##me; \
1158 output[16] = X##me; \
1160 state[17] = X##mi; \
1161 state[18] = X##mo; \
1164 state[16] = X##me; \
1165 output[16] = X##me; \
1166 state[17] = X##mi; \
1167 output[17] = ~X##mi; \
1168 state[18] = X##mo; \
1170 output[18] = X##mo; \
1173 state[19] = X##mu; \
1174 state[20] = X##sa; \
1175 state[21] = X##se; \
1176 state[22] = X##si; \
1179 state[16] = X##me; \
1180 output[16] = X##me; \
1181 state[17] = X##mi; \
1182 output[17] = ~X##mi; \
1183 state[18] = X##mo; \
1184 output[18] = X##mo; \
1185 state[19] = X##mu; \
1186 output[19] = X##mu; \
1188 state[20] = X##sa; \
1190 output[20] = ~X##sa; \
1192 state[21] = X##se; \
1193 state[22] = X##si; \
1196 state[20] = X##sa; \
1197 output[20] = ~X##sa; \
1198 state[21] = X##se; \
1199 output[21] = X##se; \
1200 state[22] = X##si; \
1202 output[22] = X##si; \
1206 state[23] = X##so; \
1207 state[24] = X##su; \
1210 state[16] = X##me; \
1211 output[16] = X##me; \
1212 state[17] = X##mi; \
1213 output[17] = ~X##mi; \
1214 state[18] = X##mo; \
1215 output[18] = X##mo; \
1216 state[19] = X##mu; \
1217 output[19] = X##mu; \
1218 state[20] = X##sa; \
1219 output[20] = ~X##sa; \
1220 state[21] = X##se; \
1221 output[21] = X##se; \
1222 state[22] = X##si; \
1223 output[22] = X##si; \
1224 state[23] = X##so; \
1225 output[23] = X##so; \
1226 state[24] = X##su; \
1228 output[24] = X##su; \
1233 #define output(X, output, laneCount) \
1239 output[ 0] = X##ba; \
1243 output[ 0] = X##ba; \
1244 output[ 1] = ~X##be; \
1246 output[ 2] = ~X##bi; \
1251 output[ 0] = X##ba; \
1252 output[ 1] = ~X##be; \
1253 output[ 2] = ~X##bi; \
1254 output[ 3] = X##bo; \
1257 output[ 4] = X##bu; \
1261 output[ 4] = X##bu; \
1262 output[ 5] = X##ga; \
1264 output[ 6] = X##ge; \
1270 output[ 0] = X##ba; \
1271 output[ 1] = ~X##be; \
1272 output[ 2] = ~X##bi; \
1273 output[ 3] = X##bo; \
1274 output[ 4] = X##bu; \
1275 output[ 5] = X##ga; \
1276 output[ 6] = X##ge; \
1277 output[ 7] = X##gi; \
1281 output[ 8] = ~X##go; \
1285 output[ 8] = ~X##go; \
1286 output[ 9] = X##gu; \
1288 output[10] = X##ka; \
1293 output[ 8] = ~X##go; \
1294 output[ 9] = X##gu; \
1295 output[10] = X##ka; \
1296 output[11] = X##ke; \
1299 output[12] = ~X##ki; \
1303 output[12] = ~X##ki; \
1304 output[13] = X##ko; \
1306 output[14] = X##ku; \
1313 output[ 0] = X##ba; \
1314 output[ 1] = ~X##be; \
1315 output[ 2] = ~X##bi; \
1316 output[ 3] = X##bo; \
1317 output[ 4] = X##bu; \
1318 output[ 5] = X##ga; \
1319 output[ 6] = X##ge; \
1320 output[ 7] = X##gi; \
1321 output[ 8] = ~X##go; \
1322 output[ 9] = X##gu; \
1323 output[10] = X##ka; \
1324 output[11] = X##ke; \
1325 output[12] = ~X##ki; \
1326 output[13] = X##ko; \
1327 output[14] = X##ku; \
1328 output[15] = X##ma; \
1333 output[16] = X##me; \
1337 output[16] = X##me; \
1338 output[17] = ~X##mi; \
1340 output[18] = X##mo; \
1345 output[16] = X##me; \
1346 output[17] = ~X##mi; \
1347 output[18] = X##mo; \
1348 output[19] = X##mu; \
1351 output[20] = ~X##sa; \
1355 output[20] = ~X##sa; \
1356 output[21] = X##se; \
1358 output[22] = X##si; \
1364 output[16] = X##me; \
1365 output[17] = ~X##mi; \
1366 output[18] = X##mo; \
1367 output[19] = X##mu; \
1368 output[20] = ~X##sa; \
1369 output[21] = X##se; \
1370 output[22] = X##si; \
1371 output[23] = X##so; \
1373 output[24] = X##su; \
1378 #define wrapOne(X, input, output, index, name) \
1379 X##name ^= input[index]; \
1380 output[index] = X##name;
1382 #define wrapOneInvert(X, input, output, index, name) \
1383 X##name ^= input[index]; \
1384 output[index] = ~X##name;
1386 #define unwrapOne(X, input, output, index, name) \
1387 output[index] = input[index] ^ X##name; \
1388 X##name ^= output[index];
1390 #define unwrapOneInvert(X, input, output, index, name) \
1391 output[index] = ~(input[index] ^ X##name); \
1392 X##name ^= output[index]; \
1397 #define copyToStateAndOutput(X, state, output, laneCount) \
1402 state[ 0] = X##ba; \
1404 output[ 0] = X##ba; \
1406 state[ 1] = X##be; \
1407 state[ 2] = X##bi; \
1410 state[ 0] = X##ba; \
1411 output[ 0] = X##ba; \
1412 state[ 1] = X##be; \
1413 output[ 1] = X##be; \
1414 state[ 2] = X##bi; \
1416 output[ 2] = X##bi; \
1419 state[ 3] = X##bo; \
1420 state[ 4] = X##bu; \
1421 state[ 5] = X##ga; \
1422 state[ 6] = X##ge; \
1425 state[ 0] = X##ba; \
1426 output[ 0] = X##ba; \
1427 state[ 1] = X##be; \
1428 output[ 1] = X##be; \
1429 state[ 2] = X##bi; \
1430 output[ 2] = X##bi; \
1431 state[ 3] = X##bo; \
1432 output[ 3] = X##bo; \
1434 state[ 4] = X##bu; \
1436 output[ 4] = X##bu; \
1438 state[ 5] = X##ga; \
1439 state[ 6] = X##ge; \
1442 state[ 4] = X##bu; \
1443 output[ 4] = X##bu; \
1444 state[ 5] = X##ga; \
1445 output[ 5] = X##ga; \
1446 state[ 6] = X##ge; \
1448 output[ 6] = X##ge; \
1452 state[ 7] = X##gi; \
1453 state[ 8] = X##go; \
1454 state[ 9] = X##gu; \
1455 state[10] = X##ka; \
1456 state[11] = X##ke; \
1457 state[12] = X##ki; \
1458 state[13] = X##ko; \
1459 state[14] = X##ku; \
1462 state[ 0] = X##ba; \
1463 output[ 0] = X##ba; \
1464 state[ 1] = X##be; \
1465 output[ 1] = X##be; \
1466 state[ 2] = X##bi; \
1467 output[ 2] = X##bi; \
1468 state[ 3] = X##bo; \
1469 output[ 3] = X##bo; \
1470 state[ 4] = X##bu; \
1471 output[ 4] = X##bu; \
1472 state[ 5] = X##ga; \
1473 output[ 5] = X##ga; \
1474 state[ 6] = X##ge; \
1475 output[ 6] = X##ge; \
1476 state[ 7] = X##gi; \
1477 output[ 7] = X##gi; \
1480 state[ 8] = X##go; \
1482 output[ 8] = X##go; \
1484 state[ 9] = X##gu; \
1485 state[10] = X##ka; \
1488 state[ 8] = X##go; \
1489 output[ 8] = X##go; \
1490 state[ 9] = X##gu; \
1491 output[ 9] = X##gu; \
1492 state[10] = X##ka; \
1494 output[10] = X##ka; \
1497 state[11] = X##ke; \
1498 state[12] = X##ki; \
1499 state[13] = X##ko; \
1500 state[14] = X##ku; \
1503 state[ 8] = X##go; \
1504 output[ 8] = X##go; \
1505 state[ 9] = X##gu; \
1506 output[ 9] = X##gu; \
1507 state[10] = X##ka; \
1508 output[10] = X##ka; \
1509 state[11] = X##ke; \
1510 output[11] = X##ke; \
1512 state[12] = X##ki; \
1514 output[12]= X##ki; \
1516 state[13] = X##ko; \
1517 state[14] = X##ku; \
1520 state[12] = X##ki; \
1521 output[12]= X##ki; \
1522 state[13] = X##ko; \
1523 output[13] = X##ko; \
1524 state[14] = X##ku; \
1526 output[14] = X##ku; \
1531 state[15] = X##ma; \
1532 state[16] = X##me; \
1533 state[17] = X##mi; \
1534 state[18] = X##mo; \
1535 state[19] = X##mu; \
1536 state[20] = X##sa; \
1537 state[21] = X##se; \
1538 state[22] = X##si; \
1539 state[23] = X##so; \
1540 state[24] = X##su; \
1543 state[ 0] = X##ba; \
1544 output[ 0] = X##ba; \
1545 state[ 1] = X##be; \
1546 output[ 1] = X##be; \
1547 state[ 2] = X##bi; \
1548 output[ 2] = X##bi; \
1549 state[ 3] = X##bo; \
1550 output[ 3] = X##bo; \
1551 state[ 4] = X##bu; \
1552 output[ 4] = X##bu; \
1553 state[ 5] = X##ga; \
1554 output[ 5] = X##ga; \
1555 state[ 6] = X##ge; \
1556 output[ 6] = X##ge; \
1557 state[ 7] = X##gi; \
1558 output[ 7] = X##gi; \
1559 state[ 8] = X##go; \
1560 output[ 8] = X##go; \
1561 state[ 9] = X##gu; \
1562 output[ 9] = X##gu; \
1563 state[10] = X##ka; \
1564 output[10] = X##ka; \
1565 state[11] = X##ke; \
1566 output[11] = X##ke; \
1567 state[12] = X##ki; \
1568 output[12]= X##ki; \
1569 state[13] = X##ko; \
1570 output[13] = X##ko; \
1571 state[14] = X##ku; \
1572 output[14] = X##ku; \
1573 state[15] = X##ma; \
1574 output[15] = X##ma; \
1578 state[16] = X##me; \
1580 output[16] = X##me; \
1582 state[17] = X##mi; \
1583 state[18] = X##mo; \
1586 state[16] = X##me; \
1587 output[16] = X##me; \
1588 state[17] = X##mi; \
1589 output[17] = X##mi; \
1590 state[18] = X##mo; \
1592 output[18] = X##mo; \
1595 state[19] = X##mu; \
1596 state[20] = X##sa; \
1597 state[21] = X##se; \
1598 state[22] = X##si; \
1601 state[16] = X##me; \
1602 output[16] = X##me; \
1603 state[17] = X##mi; \
1604 output[17] = X##mi; \
1605 state[18] = X##mo; \
1606 output[18] = X##mo; \
1607 state[19] = X##mu; \
1608 output[19] = X##mu; \
1610 state[20] = X##sa; \
1612 output[20] = X##sa; \
1614 state[21] = X##se; \
1615 state[22] = X##si; \
1618 state[20] = X##sa; \
1619 output[20] = X##sa; \
1620 state[21] = X##se; \
1621 output[21] = X##se; \
1622 state[22] = X##si; \
1624 output[22] = X##si; \
1628 state[23] = X##so; \
1629 state[24] = X##su; \
1632 state[16] = X##me; \
1633 output[16] = X##me; \
1634 state[17] = X##mi; \
1635 output[17] = X##mi; \
1636 state[18] = X##mo; \
1637 output[18] = X##mo; \
1638 state[19] = X##mu; \
1639 output[19] = X##mu; \
1640 state[20] = X##sa; \
1641 output[20] = X##sa; \
1642 state[21] = X##se; \
1643 output[21] = X##se; \
1644 state[22] = X##si; \
1645 output[22] = X##si; \
1646 state[23] = X##so; \
1647 output[23] = X##so; \
1648 state[24] = X##su; \
1650 output[24] = X##su; \
1655 #define output(X, output, laneCount) \
1661 output[ 0] = X##ba; \
1665 output[ 0] = X##ba; \
1666 output[ 1] = X##be; \
1668 output[ 2] = X##bi; \
1673 output[ 0] = X##ba; \
1674 output[ 1] = X##be; \
1675 output[ 2] = X##bi; \
1676 output[ 3] = X##bo; \
1679 output[ 4] = X##bu; \
1683 output[ 4] = X##bu; \
1684 output[ 5] = X##ga; \
1686 output[ 6] = X##ge; \
1692 output[ 0] = X##ba; \
1693 output[ 1] = X##be; \
1694 output[ 2] = X##bi; \
1695 output[ 3] = X##bo; \
1696 output[ 4] = X##bu; \
1697 output[ 5] = X##ga; \
1698 output[ 6] = X##ge; \
1699 output[ 7] = X##gi; \
1703 output[ 8] = X##go; \
1707 output[ 8] = X##go; \
1708 output[ 9] = X##gu; \
1710 output[10] = X##ka; \
1715 output[ 8] = X##go; \
1716 output[ 9] = X##gu; \
1717 output[10] = X##ka; \
1718 output[11] = X##ke; \
1721 output[12] = X##ki; \
1725 output[12] = X##ki; \
1726 output[13] = X##ko; \
1728 output[14] = X##ku; \
1735 output[ 0] = X##ba; \
1736 output[ 1] = X##be; \
1737 output[ 2] = X##bi; \
1738 output[ 3] = X##bo; \
1739 output[ 4] = X##bu; \
1740 output[ 5] = X##ga; \
1741 output[ 6] = X##ge; \
1742 output[ 7] = X##gi; \
1743 output[ 8] = X##go; \
1744 output[ 9] = X##gu; \
1745 output[10] = X##ka; \
1746 output[11] = X##ke; \
1747 output[12] = X##ki; \
1748 output[13] = X##ko; \
1749 output[14] = X##ku; \
1750 output[15] = X##ma; \
1755 output[16] = X##me; \
1759 output[16] = X##me; \
1760 output[17] = X##mi; \
1762 output[18] = X##mo; \
1767 output[16] = X##me; \
1768 output[17] = X##mi; \
1769 output[18] = X##mo; \
1770 output[19] = X##mu; \
1773 output[20] = X##sa; \
1777 output[20] = X##sa; \
1778 output[21] = X##se; \
1780 output[22] = X##si; \
1786 output[16] = X##me; \
1787 output[17] = X##mi; \
1788 output[18] = X##mo; \
1789 output[19] = X##mu; \
1790 output[20] = X##sa; \
1791 output[21] = X##se; \
1792 output[22] = X##si; \
1793 output[23] = X##so; \
1795 output[24] = X##su; \
1800 #define wrapOne(X, input, output, index, name) \
1801 X##name ^= input[index]; \
1802 output[index] = X##name;
1804 #define wrapOneInvert(X, input, output, index, name) \
1805 X##name ^= input[index]; \
1806 output[index] = X##name;
1808 #define unwrapOne(X, input, output, index, name) \
1809 output[index] = input[index] ^ X##name; \
1810 X##name ^= output[index];
1812 #define unwrapOneInvert(X, input, output, index, name) \
1813 output[index] = input[index] ^ X##name; \
1814 X##name ^= output[index];
1818 #define wrap(X, input, output, laneCount, trailingBits) \
1824 X##ba ^= trailingBits; \
1827 wrapOne(X, input, output, 0, ba) \
1828 X##be ^= trailingBits; \
1832 wrapOne(X, input, output, 0, ba) \
1833 wrapOneInvert(X, input, output, 1, be) \
1835 X##bi ^= trailingBits; \
1838 wrapOneInvert(X, input, output, 2, bi) \
1839 X##bo ^= trailingBits; \
1844 wrapOne(X, input, output, 0, ba) \
1845 wrapOneInvert(X, input, output, 1, be) \
1846 wrapOneInvert(X, input, output, 2, bi) \
1847 wrapOne(X, input, output, 3, bo) \
1850 X##bu ^= trailingBits; \
1853 wrapOne(X, input, output, 4, bu) \
1854 X##ga ^= trailingBits; \
1858 wrapOne(X, input, output, 4, bu) \
1859 wrapOne(X, input, output, 5, ga) \
1861 X##ge ^= trailingBits; \
1864 wrapOne(X, input, output, 6, ge) \
1865 X##gi ^= trailingBits; \
1871 wrapOne(X, input, output, 0, ba) \
1872 wrapOneInvert(X, input, output, 1, be) \
1873 wrapOneInvert(X, input, output, 2, bi) \
1874 wrapOne(X, input, output, 3, bo) \
1875 wrapOne(X, input, output, 4, bu) \
1876 wrapOne(X, input, output, 5, ga) \
1877 wrapOne(X, input, output, 6, ge) \
1878 wrapOne(X, input, output, 7, gi) \
1882 X##go ^= trailingBits; \
1885 wrapOneInvert(X, input, output, 8, go) \
1886 X##gu ^= trailingBits; \
1890 wrapOneInvert(X, input, output, 8, go) \
1891 wrapOne(X, input, output, 9, gu) \
1893 X##ka ^= trailingBits; \
1896 wrapOne(X, input, output, 10, ka) \
1897 X##ke ^= trailingBits; \
1902 wrapOneInvert(X, input, output, 8, go) \
1903 wrapOne(X, input, output, 9, gu) \
1904 wrapOne(X, input, output, 10, ka) \
1905 wrapOne(X, input, output, 11, ke) \
1908 X##ki ^= trailingBits; \
1911 wrapOneInvert(X, input, output, 12, ki) \
1912 X##ko ^= trailingBits; \
1916 wrapOneInvert(X, input, output, 12, ki) \
1917 wrapOne(X, input, output, 13, ko) \
1919 X##ku ^= trailingBits; \
1922 wrapOne(X, input, output, 14, ku) \
1923 X##ma ^= trailingBits; \
1930 wrapOne(X, input, output, 0, ba) \
1931 wrapOneInvert(X, input, output, 1, be) \
1932 wrapOneInvert(X, input, output, 2, bi) \
1933 wrapOne(X, input, output, 3, bo) \
1934 wrapOne(X, input, output, 4, bu) \
1935 wrapOne(X, input, output, 5, ga) \
1936 wrapOne(X, input, output, 6, ge) \
1937 wrapOne(X, input, output, 7, gi) \
1938 wrapOneInvert(X, input, output, 8, go) \
1939 wrapOne(X, input, output, 9, gu) \
1940 wrapOne(X, input, output, 10, ka) \
1941 wrapOne(X, input, output, 11, ke) \
1942 wrapOneInvert(X, input, output, 12, ki) \
1943 wrapOne(X, input, output, 13, ko) \
1944 wrapOne(X, input, output, 14, ku) \
1945 wrapOne(X, input, output, 15, ma) \
1950 X##me ^= trailingBits; \
1953 wrapOne(X, input, output, 16, me) \
1954 X##mi ^= trailingBits; \
1958 wrapOne(X, input, output, 16, me) \
1959 wrapOneInvert(X, input, output, 17, mi) \
1961 X##mo ^= trailingBits; \
1964 wrapOne(X, input, output, 18, mo) \
1965 X##mu ^= trailingBits; \
1970 wrapOne(X, input, output, 16, me) \
1971 wrapOneInvert(X, input, output, 17, mi) \
1972 wrapOne(X, input, output, 18, mo) \
1973 wrapOne(X, input, output, 19, mu) \
1976 X##sa ^= trailingBits; \
1979 wrapOneInvert(X, input, output, 20, sa) \
1980 X##se ^= trailingBits; \
1984 wrapOneInvert(X, input, output, 20, sa) \
1985 wrapOne(X, input, output, 21, se) \
1987 X##si ^= trailingBits; \
1990 wrapOne(X, input, output, 22, si) \
1991 X##so ^= trailingBits; \
1997 wrapOne(X, input, output, 16, me) \
1998 wrapOneInvert(X, input, output, 17, mi) \
1999 wrapOne(X, input, output, 18, mo) \
2000 wrapOne(X, input, output, 19, mu) \
2001 wrapOneInvert(X, input, output, 20, sa) \
2002 wrapOne(X, input, output, 21, se) \
2003 wrapOne(X, input, output, 22, si) \
2004 wrapOne(X, input, output, 23, so) \
2006 X##su ^= trailingBits; \
2009 wrapOne(X, input, output, 24, su) \
2014 #define unwrap(X, input, output, laneCount, trailingBits) \
2020 X##ba ^= trailingBits; \
2023 unwrapOne(X, input, output, 0, ba) \
2024 X##be ^= trailingBits; \
2028 unwrapOne(X, input, output, 0, ba) \
2029 unwrapOneInvert(X, input, output, 1, be) \
2031 X##bi ^= trailingBits; \
2034 unwrapOneInvert(X, input, output, 2, bi) \
2035 X##bo ^= trailingBits; \
2040 unwrapOne(X, input, output, 0, ba) \
2041 unwrapOneInvert(X, input, output, 1, be) \
2042 unwrapOneInvert(X, input, output, 2, bi) \
2043 unwrapOne(X, input, output, 3, bo) \
2046 X##bu ^= trailingBits; \
2049 unwrapOne(X, input, output, 4, bu) \
2050 X##ga ^= trailingBits; \
2054 unwrapOne(X, input, output, 4, bu) \
2055 unwrapOne(X, input, output, 5, ga) \
2057 X##ge ^= trailingBits; \
2060 unwrapOne(X, input, output, 6, ge) \
2061 X##gi ^= trailingBits; \
2067 unwrapOne(X, input, output, 0, ba) \
2068 unwrapOneInvert(X, input, output, 1, be) \
2069 unwrapOneInvert(X, input, output, 2, bi) \
2070 unwrapOne(X, input, output, 3, bo) \
2071 unwrapOne(X, input, output, 4, bu) \
2072 unwrapOne(X, input, output, 5, ga) \
2073 unwrapOne(X, input, output, 6, ge) \
2074 unwrapOne(X, input, output, 7, gi) \
2078 X##go ^= trailingBits; \
2081 unwrapOneInvert(X, input, output, 8, go) \
2082 X##gu ^= trailingBits; \
2086 unwrapOneInvert(X, input, output, 8, go) \
2087 unwrapOne(X, input, output, 9, gu) \
2089 X##ka ^= trailingBits; \
2092 unwrapOne(X, input, output, 10, ka) \
2093 X##ke ^= trailingBits; \
2098 unwrapOneInvert(X, input, output, 8, go) \
2099 unwrapOne(X, input, output, 9, gu) \
2100 unwrapOne(X, input, output, 10, ka) \
2101 unwrapOne(X, input, output, 11, ke) \
2104 X##ki ^= trailingBits; \
2107 unwrapOneInvert(X, input, output, 12, ki) \
2108 X##ko ^= trailingBits; \
2112 unwrapOneInvert(X, input, output, 12, ki) \
2113 unwrapOne(X, input, output, 13, ko) \
2115 X##ku ^= trailingBits; \
2118 unwrapOne(X, input, output, 14, ku) \
2119 X##ma ^= trailingBits; \
2126 unwrapOne(X, input, output, 0, ba) \
2127 unwrapOneInvert(X, input, output, 1, be) \
2128 unwrapOneInvert(X, input, output, 2, bi) \
2129 unwrapOne(X, input, output, 3, bo) \
2130 unwrapOne(X, input, output, 4, bu) \
2131 unwrapOne(X, input, output, 5, ga) \
2132 unwrapOne(X, input, output, 6, ge) \
2133 unwrapOne(X, input, output, 7, gi) \
2134 unwrapOneInvert(X, input, output, 8, go) \
2135 unwrapOne(X, input, output, 9, gu) \
2136 unwrapOne(X, input, output, 10, ka) \
2137 unwrapOne(X, input, output, 11, ke) \
2138 unwrapOneInvert(X, input, output, 12, ki) \
2139 unwrapOne(X, input, output, 13, ko) \
2140 unwrapOne(X, input, output, 14, ku) \
2141 unwrapOne(X, input, output, 15, ma) \
2146 X##me ^= trailingBits; \
2149 unwrapOne(X, input, output, 16, me) \
2150 X##mi ^= trailingBits; \
2154 unwrapOne(X, input, output, 16, me) \
2155 unwrapOneInvert(X, input, output, 17, mi) \
2157 X##mo ^= trailingBits; \
2160 unwrapOne(X, input, output, 18, mo) \
2161 X##mu ^= trailingBits; \
2166 unwrapOne(X, input, output, 16, me) \
2167 unwrapOneInvert(X, input, output, 17, mi) \
2168 unwrapOne(X, input, output, 18, mo) \
2169 unwrapOne(X, input, output, 19, mu) \
2172 X##sa ^= trailingBits; \
2175 unwrapOneInvert(X, input, output, 20, sa) \
2176 X##se ^= trailingBits; \
2180 unwrapOneInvert(X, input, output, 20, sa) \
2181 unwrapOne(X, input, output, 21, se) \
2183 X##si ^= trailingBits; \
2186 unwrapOne(X, input, output, 22, si) \
2187 X##so ^= trailingBits; \
2193 unwrapOne(X, input, output, 16, me) \
2194 unwrapOneInvert(X, input, output, 17, mi) \
2195 unwrapOne(X, input, output, 18, mo) \
2196 unwrapOne(X, input, output, 19, mu) \
2197 unwrapOneInvert(X, input, output, 20, sa) \
2198 unwrapOne(X, input, output, 21, se) \
2199 unwrapOne(X, input, output, 22, si) \
2200 unwrapOne(X, input, output, 23, so) \
2202 X##su ^= trailingBits; \
2205 unwrapOne(X, input, output, 24, su) \