Lines Matching refs:crc
34 let mut crc = !prev; in update_fast_16() localVariable
38 crc = CRC32_TABLE[0x0][buf[0xf] as usize] in update_fast_16()
50 ^ CRC32_TABLE[0xc][buf[0x3] as usize ^ ((crc >> 0x18) & 0xFF) as usize] in update_fast_16()
51 ^ CRC32_TABLE[0xd][buf[0x2] as usize ^ ((crc >> 0x10) & 0xFF) as usize] in update_fast_16()
52 ^ CRC32_TABLE[0xe][buf[0x1] as usize ^ ((crc >> 0x08) & 0xFF) as usize] in update_fast_16()
53 ^ CRC32_TABLE[0xf][buf[0x0] as usize ^ ((crc >> 0x00) & 0xFF) as usize]; in update_fast_16()
58 update_slow(!crc, buf) in update_fast_16()
62 let mut crc = !prev; in update_slow() localVariable
65 crc = CRC32_TABLE[0][((crc as u8) ^ byte) as usize] ^ (crc >> 8); in update_slow()
68 !crc in update_slow()
90 fn fast_16_is_the_same_as_slow(crc: u32, bytes: Vec<u8>) -> bool {
91 super::update_fast_16(crc, &bytes) == super::update_slow(crc, &bytes)