Lines Matching +full:0 +full:x74
15 for (i = 0; i < len; i++) { in crc4()
16 for (j = 0; j < 2; j++) { in crc4()
17 crc ^= ((src[i] >> (4 * (1 - j))) & 0xf); in crc4()
19 for (k = 0; k < 4; k++) { in crc4()
21 if (crc & 0x01) { in crc4()
27 if (crc & 0x8) { in crc4()
37 return crc & 0xF; in crc4()
42 static const uint8_t lookup[8] = { 0x03, 0x65, 0xcf, 0xa9, 0xb8, 0xde, 0x74, 0x12 }; in crc4_ti()
45 for (size_t i = 0; i < len; i++) { in crc4_ti()
46 for (size_t j = 0U; j < 2U; j++) { in crc4_ti()
47 index = seed ^ ((src[i] >> (4*(1-j))) & 0xf); in crc4_ti()
48 seed = (lookup[index >> 1] >> (1 - (index & 1)) * 4) & 0xf; in crc4_ti()