Searched refs:GF2_DIM (Results 1 – 9 of 9) sorted by relevance
1 const GF2_DIM: usize = 32; constant3 fn gf2_matrix_times(mat: &[u32; GF2_DIM], mut vec: u32) -> u32 { in gf2_matrix_times() argument16 fn gf2_matrix_square(square: &mut [u32; GF2_DIM], mat: &[u32; GF2_DIM]) { in gf2_matrix_square() argument17 for n in 0..GF2_DIM {24 let mut even = [0u32; GF2_DIM]; /* even-power-of-two zeros operator */ in combine()25 let mut odd = [0u32; GF2_DIM]; /* odd-power-of-two zeros operator */ in combine()35 for n in 1..GF2_DIM { in combine()
13 static uint32_t crc_comb[GF2_DIM][GF2_DIM];25 for (n = 0; n < GF2_DIM; n++) in gf2_matrix_square()92 k = GF2_DIM - 3; in make_crc_table()95 for (n = 1; n < GF2_DIM; n++) { in make_crc_table()132 printf("crc_comb[%d][%d] =\n{\n {\n", GF2_DIM, GF2_DIM); in print_crc32_tables()133 write_table(crc_comb[0], GF2_DIM); in print_crc32_tables()134 for (k = 1; k < GF2_DIM; k++) { in print_crc32_tables()136 write_table(crc_comb[k], GF2_DIM); in print_crc32_tables()
185 for (n = 0; len2; n = (n + 1) % GF2_DIM, len2 >>= 1) in crc32_combine_()248 for (j = 0; j < GF2_DIM; j++) { in crc32_combine_gen_()260 for (j = 0; j < GF2_DIM; j++) in crc32_combine_gen_()265 i = (i + 1) % GF2_DIM; in crc32_combine_gen_()272 i = (i + 1) % GF2_DIM; in crc32_combine_gen_()276 for (j = 0; j < GF2_DIM; j++) in crc32_combine_gen_()
4 #define GF2_DIM 32 /* dimension of GF(2) vectors (length of CRC) */ macro
341 #define GF2_DIM 32 /* dimension of GF(2) vectors (length of CRC) */ macro367 for (n = 0; n < GF2_DIM; n++)379 unsigned long even[GF2_DIM]; /* even-power-of-two zeros operator */380 unsigned long odd[GF2_DIM]; /* odd-power-of-two zeros operator */389 for (n = 1; n < GF2_DIM; n++) {
339 #define GF2_DIM 32 /* dimension of GF(2) vectors (length of CRC) */ macro365 for (n = 0; n < GF2_DIM; n++)377 unsigned long even[GF2_DIM]; /* even-power-of-two zeros operator */378 unsigned long odd[GF2_DIM]; /* odd-power-of-two zeros operator */387 for (n = 1; n < GF2_DIM; n++) {
395 #define GF2_DIM 32 /* dimension of GF(2) vectors (length of CRC) */ macro421 for (n = 0; n < GF2_DIM; n++)433 unsigned long even[GF2_DIM]; /* even-power-of-two zeros operator */434 unsigned long odd[GF2_DIM]; /* odd-power-of-two zeros operator */443 for (n = 1; n < GF2_DIM; n++) {