OPAL (Object Oriented Parallel Accelerator Library)
2022.1
OPAL
src
ippl
src
Message
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
21
extern
"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
CRCTYPE
unsigned int CRCTYPE
Definition:
CRC.h:25
crc
CRCTYPE crc(void *icp, int icnt)
Definition:
CRC.cpp:106
Generated on Thu Oct 20 2022 17:40:08 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.3