ATLAS Offline Software
Loading...
Searching...
No Matches
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

namespace  CxxUtils
namespace  std
 STL namespace.

Macros

#define ATH_CRC64_VEC   0

Functions

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

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 31 of file crc64.h.