|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #ifndef CXXUTILS_CRC64_H
16 #define CXXUTILS_CRC64_H
28 #if defined(__x86_64__) && HAVE_GCC_INTRINSICS
29 # define ATH_CRC64_VEC 1
31 # define ATH_CRC64_VEC 0
70 uint64_t initial = 0xffffffffffffffff);
117 #endif // ATH_CRC64_VEC
182 #endif // not CXXUTILS_CRC64_H
char data[hepevt_bytes_allocation_ATLAS]
Some additional feature test macros.
uint64_t crc64_bytewise(const CRCTable &table, const char *data, size_t data_len)
Find the CRC-64 of a string, using a byte-by-byte algorithm.
void deleteCRCTable(CxxUtils::CRCTable *table)
Delete a CRCTable object.
bool const RAWDATA *ch2 const
Precomputed tables and constants for the CRC calculation.
uint64_t crc64addint(uint64_t crc, uint64_t x)
Extend a previously-calculated CRC to include an int.
uint64_t crc64(const CRCTable &table, const char *data, size_t data_len)
Find the CRC-64 of a string,.
std::unique_ptr< CRCTable > makeCRCTable(uint64_t p, uint64_t initial=0xffffffffffffffff)
Initialize CRC tables and constants.
__attribute__((always_inline)) inline uint16_t TileCalibDrawerBase
std::string crc64format(uint64_t crc)
Format a CRC-64 as a string.
std::string crc64digest(const std::string &str)
Return a CRC-64 digest of a string.