Lines Matching refs:N

31   A CRC of a message is computed on N braids of words in the message, where
32 each word consists of W bytes (4 or 8). If N is 3, for example, then three
36 of N * W bytes as are available have been processed. The results are combined
37 into a single CRC at the end. For this code, N must be in the range 1..6 and
38 W must be 4 or 8. The upper limit on N can be increased if desired by adding
40 crc32.h would need to be regenerated, if the maximum N value is increased.
42 N and W are chosen empirically by benchmarking the execution time on a given
43 processor. The choices for N and W below were based on testing on Intel Kaby
46 with N=5, W=8. The Sparc, PowerPC, and MIPS64 were all fastest at N=5, W=4.
51 /* Define N */
53 # define N Z_TESTN
55 # define N 5
57 #if N < 1 || N > 6
58 # error N must be in 1..6
294 braid(crc_braid_table, crc_braid_big_table, N, W);
353 /* write out braid tables for each value of N */
357 "#if N == %d\n", n);
359 /* compute braid tables for this N and 64-bit word_t */
385 /* compute braid tables for this N and 32-bit word_t */
746 if (len >= N * W + W - 1) {
758 /* Compute the CRC on as many N z_word_t blocks as are available. */
759 blks = len / (N * W);
760 len -= blks * N * W;
773 #if N > 1
776 #if N > 2
779 #if N > 3
782 #if N > 4
785 #if N > 5
796 #if N > 1
798 #if N > 2
800 #if N > 3
802 #if N > 4
804 #if N > 5
819 #if N > 1
821 #if N > 2
823 #if N > 3
825 #if N > 4
827 #if N > 5
834 words += N;
839 #if N > 1
841 #if N > 2
843 #if N > 3
845 #if N > 4
847 #if N > 5
856 #if N > 1
858 #if N > 2
860 #if N > 3
862 #if N > 4
864 #if N > 5
875 Process the last block, combining the CRCs of the N braids at the
879 #if N > 1
881 #if N > 2
883 #if N > 3
885 #if N > 4
887 #if N > 5
894 words += N;
900 #if N > 1
902 #if N > 2
904 #if N > 3
906 #if N > 4
908 #if N > 5
918 #if N > 1
920 #if N > 2
922 #if N > 3
924 #if N > 4
926 #if N > 5
941 #if N > 1
943 #if N > 2
945 #if N > 3
947 #if N > 4
949 #if N > 5
956 words += N;
961 #if N > 1
963 #if N > 2
965 #if N > 3
967 #if N > 4
969 #if N > 5
978 #if N > 1
980 #if N > 2
982 #if N > 3
984 #if N > 4
986 #if N > 5
997 Process the last block, combining the CRCs of the N braids at the
1001 #if N > 1
1003 #if N > 2
1005 #if N > 3
1007 #if N > 4
1009 #if N > 5
1016 words += N;