OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
crc
CRCTYPE crc(void *icp, int icnt)
Definition:
CRC.cpp:106
CRCTYPE
unsigned int CRCTYPE
Definition:
CRC.h:25
Generated on Sat Jan 4 2020 14:47:37 for OPAL (Object Oriented Parallel Accelerator Library) by
1.8.5