#include <cstdio>
#include <cstdlib>
#include <cstdint>
#include <unistd.h>
#include <pthread.h>
Go to the source code of this file.
Macros | |
#define | POLY 0x82f63b78 |
Functions | |
uint32_t | crc32c (uint32_t crc, const unsigned char *buf, size_t len) |
bool | crc32c_hw_test () |
static void | crc32c_init_sw (void) |
static uint32_t | crc32c_sw (uint32_t crci, const unsigned char *buf, size_t len) |
Variables | |
static pthread_once_t | crc32c_once_sw = PTHREAD_ONCE_INIT |
static uint32_t | crc32c_table [8][256] |
#define POLY 0x82f63b78 |
Definition at line 49 of file crc32c.cc.
Referenced by crc32c_init_sw(), and crc32c_sw().
uint32_t crc32c | ( | uint32_t | crc, |
const unsigned char * | buf, | ||
size_t | len | ||
) |
Definition at line 340 of file crc32c.cc.
References crc32c_sw().
Referenced by FedRawDataInputSource::getNextEvent(), FRDStreamSource::setRunAndEventInfo(), and RawEventOutputModuleForBU< Consumer >::write().
bool crc32c_hw_test | ( | ) |
Definition at line 354 of file crc32c.cc.
Referenced by FedRawDataInputSource::FedRawDataInputSource().
|
static |
Definition at line 56 of file crc32c.cc.
References crc32c_table, gen::k, gen::n, and POLY.
Referenced by crc32c_sw().
|
static |
Definition at line 84 of file crc32c.cc.
References crc32c_init_sw(), crc32c_once_sw, crc32c_table, end, gen::n, GetRecoTauVFromDQM_MC_cff::next, POLY, and square().
Referenced by crc32c().
|
static |
Definition at line 52 of file crc32c.cc.
Referenced by crc32c_sw().
|
static |
Definition at line 53 of file crc32c.cc.
Referenced by crc32c_init_sw(), and crc32c_sw().