ATLAS Offline Software
Classes | Namespaces | Macros | Functions
crc64.h File Reference

A crc-64 implementation, using pclmul where possible. More...

#include "CxxUtils/features.h"
#include <memory>
#include <cstdint>
#include <string>
Include dependency graph for crc64.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::default_delete< CxxUtils::CRCTable >
 

Namespaces

 CxxUtils
 

Macros

#define ATH_CRC64_VEC   0
 

Functions

void CxxUtils::deleteCRCTable (CxxUtils::CRCTable *table)
 Delete a CRCTable object. More...
 
std::unique_ptr< CRCTable > CxxUtils::makeCRCTable (uint64_t p, uint64_t initial=0xffffffffffffffff)
 Initialize CRC tables and constants. More...
 
uint64_t CxxUtils::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. More...
 
uint64_t CxxUtils::crc64_bytewise (const char *data, size_t data_len)
 Find the CRC-64 of a string, using a byte-by-byte algorithm, with the default CRC. More...
 
uint64_t CxxUtils::crc64_bytewise (const std::string &s)
 Find the CRC-64 of a string, using a byte-by-byte algorithm, with the default CRC. More...
 
uint64_t CxxUtils::crc64 (const CRCTable &table, const char *data, size_t data_len)
 Find the CRC-64 of a string,. More...
 
uint64_t CxxUtils::crc64 (const char *data, size_t data_len)
 Find the CRC-64 of a string, with the default CRC. More...
 
uint64_t CxxUtils::crc64 (const std::string &s)
 Find the CRC-64 of a string, using the default polynomial. More...
 
uint64_t CxxUtils::crc64addint (uint64_t crc, uint64_t x)
 Extend a previously-calculated CRC to include an int. More...
 
std::string CxxUtils::crc64format (uint64_t crc)
 Format a CRC-64 as a string. More...
 
std::string CxxUtils::crc64digest (const std::string &str)
 Return a CRC-64 digest of a string. More...
 

Detailed Description

A crc-64 implementation, using pclmul where possible.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov

Definition in file crc64.h.

Macro Definition Documentation

◆ ATH_CRC64_VEC

#define ATH_CRC64_VEC   0

Definition at line 32 of file crc64.h.