ATLAS Offline Software
|
#include <GenericCrc.h>
Public Member Functions | |
GenericCrc () | |
Provides a library of known CRC(like) algorithms. More... | |
~GenericCrc () | |
uint32_t | crc9fibre (const std::vector< uint32_t > &inwords, size_t num_bits) const |
Functions calculating CRC over input data. More... | |
uint32_t | crc20rod (const std::vector< uint32_t > &inwords, size_t num_bits) const |
Definition at line 9 of file GenericCrc.h.
|
inline |
Provides a library of known CRC(like) algorithms.
GenericCrc is a stateless class which just provides a collection of CRC-like functions for various stages of data processing
Definition at line 20 of file GenericCrc.h.
|
inline |
Definition at line 21 of file GenericCrc.h.
uint32_t GenericCrc::crc20rod | ( | const std::vector< uint32_t > & | inwords, |
size_t | num_bits | ||
) | const |
Definition at line 33 of file GenericCrc.cxx.
uint32_t GenericCrc::crc9fibre | ( | const std::vector< uint32_t > & | inwords, |
size_t | num_bits | ||
) | const |
Functions calculating CRC over input data.
CRC9 with polynomial 1011111011 over num_bits bits
Uses a more succinct CRC calculation and flexible in terms of digits, checked versus old code but only supports bit reversal = true
Definition at line 5 of file GenericCrc.cxx.