Lines Matching refs:CRC
75 uint32_t llvm::crc32(uint32_t CRC, ArrayRef<uint8_t> Data) { in crc32() argument
76 CRC ^= 0xFFFFFFFFU; in crc32()
78 int TableIdx = (CRC ^ Byte) & 0xff; in crc32()
79 CRC = CRCTable[TableIdx] ^ (CRC >> 8); in crc32()
81 return CRC ^ 0xFFFFFFFFU; in crc32()
87 uint32_t llvm::crc32(uint32_t CRC, ArrayRef<uint8_t> Data) { in crc32() argument
93 CRC = ::crc32(CRC, (const Bytef *)Slice.data(), (uInt)Slice.size()); in crc32()
96 return CRC; in crc32()
104 CRC ^= 0xFFFFFFFFU; // Undo CRC-32 Init. in update()
105 CRC = crc32(CRC, Data); in update()
106 CRC ^= 0xFFFFFFFFU; // Undo CRC-32 XorOut. in update()