Home
last modified time | relevance | path

Searched refs:polynomial (Results 1 – 3 of 3) sorted by relevance

/lib/
Dcrc8.c29 void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial) in crc8_populate_msb() argument
38 t = (t << 1) ^ (t & msbit ? polynomial : 0); in crc8_populate_msb()
51 void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial) in crc8_populate_lsb() argument
59 t = (t >> 1) ^ (t & 1 ? polynomial : 0); in crc8_populate_lsb()
Dcrc32.c148 u32 polynomial) argument
155 crc = (crc >> 1) ^ ((crc & 1) ? polynomial : 0);
244 u32 polynomial) argument
246 u32 power = polynomial; /* CRC of x^32 */
251 crc = (crc >> 1) ^ (crc & 1 ? polynomial : 0);
260 crc = gf2_multiply(crc, power, polynomial);
267 power = gf2_multiply(power, power, polynomial);
296 u32 polynomial) argument
304 (crc << 1) ^ ((crc & 0x80000000) ? polynomial :
Dgen_crc32table.c37 static void crc32init_le_generic(const uint32_t polynomial, in crc32init_le_generic() argument
46 crc = (crc >> 1) ^ ((crc & 1) ? polynomial : 0); in crc32init_le_generic()