OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
CRC.h
Go to the documentation of this file.
1// -*- C++ -*-
2/***************************************************************************
3 *
4 * The IPPL Framework
5 *
6 *
7 * Visit http://people.web.psi.ch/adelmann/ for more details
8 *
9 ***************************************************************************/
10
11/***************************************************************************
12 *
13 * Simple routine to calculate 32-bit CRC, assuming 32-bit integers.
14 *
15 ***************************************************************************/
16
17#ifndef IPPL_MESSAGE_CRC_H
18#define IPPL_MESSAGE_CRC_H
19
20#ifdef __cplusplus
21extern "C"
22{
23#endif
24
25 typedef unsigned int CRCTYPE;
26
27 /* calculate the CRC for the given buffer of bytes, of length icnt */
28 CRCTYPE crc(void *icp, int icnt);
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif // IPPL_MESSAGE_CRC_H
unsigned int CRCTYPE
Definition: CRC.h:25
CRCTYPE crc(void *icp, int icnt)
Definition: CRC.cpp:106