Lines Matching defs:N
33 A CRC of a message is computed on N braids of words in the message, where
34 each word consists of W bytes (4 or 8). If N is 3, for example, then three
38 of N * W bytes as are available have been processed. The results are combined
39 into a single CRC at the end. For this code, N must be in the range 1..6 and
40 W must be 4 or 8. The upper limit on N can be increased if desired by adding
42 crc32.h would need to be regenerated, if the maximum N value is increased.
44 N and W are chosen empirically by benchmarking the execution time on a given
45 processor. The choices for N and W below were based on testing on Intel Kaby
48 with N=5, W=8. The Sparc, PowerPC, and MIPS64 were all fastest at N=5, W=4.
53 /* Define N */
55 # define N Z_TESTN
57 # define N 5
59 #if N < 1 || N > 6
60 # error N must be in 1..6
333 braid(crc_braid_table, crc_braid_big_table, N, W);
392 /* write out braid tables for each value of N */
396 "#if N == %d\n", n);
398 /* compute braid tables for this N and 64-bit word_t */
424 /* compute braid tables for this N and 32-bit word_t */
709 if (len >= N * W + W - 1) {
721 /* Compute the CRC on as many N z_word_t blocks as are available. */
722 blks = len / (N * W);
723 len -= blks * N * W;
736 #if N > 1
739 #if N > 2
742 #if N > 3
745 #if N > 4
748 #if N > 5
759 #if N > 1
761 #if N > 2
763 #if N > 3
765 #if N > 4
767 #if N > 5
782 #if N > 1
784 #if N > 2
786 #if N > 3
788 #if N > 4
790 #if N > 5
797 words += N;
802 #if N > 1
804 #if N > 2
806 #if N > 3
808 #if N > 4
810 #if N > 5
819 #if N > 1
821 #if N > 2
823 #if N > 3
825 #if N > 4
827 #if N > 5
838 Process the last block, combining the CRCs of the N braids at the
842 #if N > 1
844 #if N > 2
846 #if N > 3
848 #if N > 4
850 #if N > 5
857 words += N;
863 #if N > 1
865 #if N > 2
867 #if N > 3
869 #if N > 4
871 #if N > 5
881 #if N > 1
883 #if N > 2
885 #if N > 3
887 #if N > 4
889 #if N > 5
904 #if N > 1
906 #if N > 2
908 #if N > 3
910 #if N > 4
912 #if N > 5
919 words += N;
924 #if N > 1
926 #if N > 2
928 #if N > 3
930 #if N > 4
932 #if N > 5
941 #if N > 1
943 #if N > 2
945 #if N > 3
947 #if N > 4
949 #if N > 5
960 Process the last block, combining the CRCs of the N braids at the
964 #if N > 1
966 #if N > 2
968 #if N > 3
970 #if N > 4
972 #if N > 5
979 words += N;