Lines Matching refs:k

101 local z_crc_t x2nmodp OF((z_off64_t n, unsigned k));
309 int k, n;
368 for (k = 0; k < 8; k++) {
370 write_table(out, ltl[k], 256);
371 fprintf(out, "}%s", k < 7 ? ",\n" : "");
377 for (k = 0; k < 8; k++) {
379 write_table64(out, big[k], 256);
380 fprintf(out, "}%s", k < 7 ? ",\n" : "");
394 for (k = 0; k < 4; k++) {
396 write_table(out, ltl[k], 256);
397 fprintf(out, "}%s", k < 3 ? ",\n" : "");
403 for (k = 0; k < 4; k++) {
405 write_table32hi(out, big[k], 256);
406 fprintf(out, "}%s", k < 3 ? ",\n" : "");
435 Write the 32-bit values in table[0..k-1] to out, five per line in
438 local void write_table(out, table, k)
441 int k;
445 for (n = 0; n < k; n++)
448 n == k - 1 ? "" : (n % 5 == 4 ? ",\n" : ", "));
452 Write the high 32-bits of each value in table[0..k-1] to out, five per line
455 local void write_table32hi(out, table, k)
458 int k;
462 for (n = 0; n < k; n++)
465 n == k - 1 ? "" : (n % 5 == 4 ? ",\n" : ", "));
469 Write the 64-bit values in table[0..k-1] to out, three per line in
475 local void write_table64(out, table, k)
478 int k;
482 for (n = 0; n < k; n++)
485 n == k - 1 ? "" : (n % 3 == 2 ? ",\n" : ", "));
508 int k;
510 for (k = 0; k < w; k++) {
511 p = x2nmodp((n * w + 3 - k) << 3, 0);
512 ltl[k][0] = 0;
513 big[w - 1 - k][0] = 0;
515 ltl[k][i] = q = multmodp(i << 24, p);
516 big[w - 1 - k][i] = byte_swap(q);
558 Return x^(n * 2^k) modulo p(x). Requires that x2n_table[] has been
561 local z_crc_t x2nmodp(z_off64_t n, unsigned k)
568 p = multmodp(x2n_table[k & 31], p);
570 k++;
712 int k;
713 for (k = 0; k < W; k++)
720 int k;
721 for (k = 0; k < W; k++)
750 int k;
854 for (k = 1; k < W; k++) {
855 crc0 ^= crc_braid_table[k][(word0 >> (k << 3)) & 0xff];
857 crc1 ^= crc_braid_table[k][(word1 >> (k << 3)) & 0xff];
859 crc2 ^= crc_braid_table[k][(word2 >> (k << 3)) & 0xff];
861 crc3 ^= crc_braid_table[k][(word3 >> (k << 3)) & 0xff];
863 crc4 ^= crc_braid_table[k][(word4 >> (k << 3)) & 0xff];
865 crc5 ^= crc_braid_table[k][(word5 >> (k << 3)) & 0xff];
976 for (k = 1; k < W; k++) {
977 crc0 ^= crc_braid_big_table[k][(word0 >> (k << 3)) & 0xff];
979 crc1 ^= crc_braid_big_table[k][(word1 >> (k << 3)) & 0xff];
981 crc2 ^= crc_braid_big_table[k][(word2 >> (k << 3)) & 0xff];
983 crc3 ^= crc_braid_big_table[k][(word3 >> (k << 3)) & 0xff];
985 crc4 ^= crc_braid_big_table[k][(word4 >> (k << 3)) & 0xff];
987 crc5 ^= crc_braid_big_table[k][(word5 >> (k << 3)) & 0xff];