Lines Matching defs:zeros
124 * Construct an operator to apply len zeros to a crc. len must be a power of
133 uint32_t odd[32]; /* odd-power-of-two zeros operator */
171 * Take a length and build four lookup tables for applying the zeros operator
175 crc32c_zeros(uint32_t zeros[][256], size_t len)
182 zeros[0][n] = gf2_matrix_times(op, n);
183 zeros[1][n] = gf2_matrix_times(op, n << 8);
184 zeros[2][n] = gf2_matrix_times(op, n << 16);
185 zeros[3][n] = gf2_matrix_times(op, n << 24);
189 /* Apply the zeros operator table to crc. */
191 crc32c_shift(uint32_t zeros[][256], uint32_t crc)
194 return (zeros[0][crc & 0xff] ^ zeros[1][(crc >> 8) & 0xff] ^
195 zeros[2][(crc >> 16) & 0xff] ^ zeros[3][crc >> 24]);