gem5
v20.0.0.3
|
#include "base/bitfield.hh"
Go to the source code of this file.
Functions | |
template<uint32_t Poly> | |
uint32_t | crc32 (const uint8_t *data, uint32_t crc, std::size_t size) |
Evaluate the CRC32 of the first size bytes of a data buffer, using a specific polynomium and an initial value. More... | |
uint32_t crc32 | ( | const uint8_t * | data, |
uint32_t | crc, | ||
std::size_t | size | ||
) |
Evaluate the CRC32 of the first size bytes of a data buffer, using a specific polynomium and an initial value.
The crc is accomplished by reversing the input, the initial value and the output (remainder).
data | Input data buffer pointer |
crc | Initial value of the checksum |
size | Number of bytes |
Definition at line 57 of file crc.hh.
References ArmISA::i, ArmISA::j, and reverseBits().