StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CRC.hh
1 /***************************************************************************
2  * $Id: CRC.hh,v 1.3 2007/12/24 06:04:16 fine Exp $
3  * Author: M.W. Schulz
4  ***************************************************************************
5  * Description: definitions for CRC checking
6  *
7  *
8  ***************************************************************************
9  * $Log: CRC.hh,v $
10  * Revision 1.3 2007/12/24 06:04:16 fine
11  * introduce OLDEVP namespace to allow ole and new EVP library concurrently
12  *
13  * Revision 1.2 1999/07/02 04:37:41 levine
14  * Many changes - see change logs in individual programs
15  *
16  *
17  **************************************************************************/
18 #ifndef CRC_HH
19 #define CRC_HH
20 
21 #include "RecHeaderFormats.hh"
22 
23 #define CRC32DEF(a,b) {(b) = (((b) & 0x80000000) ? (((b) << 1) | 1 ) : ((b) << 1))^(a) ;}
24 namespace OLDEVP {
25 unsigned int compute_crc_bank(Bank* d,unsigned int lcrc = 0 ) ;
26 unsigned int compute_crc_block(int* d,unsigned int ByteOrdering,int length,unsigned int lcrc = 0 ) ;
27 }
28 
29 #endif /* end of CRC_HH */