00001 /*************************************************************************** 00002 * $Id: CRC.hh,v 1.3 2007/12/24 06:04:16 fine Exp $ 00003 * Author: M.W. Schulz 00004 *************************************************************************** 00005 * Description: definitions for CRC checking 00006 * 00007 * 00008 *************************************************************************** 00009 * $Log: CRC.hh,v $ 00010 * Revision 1.3 2007/12/24 06:04:16 fine 00011 * introduce OLDEVP namespace to allow ole and new EVP library concurrently 00012 * 00013 * Revision 1.2 1999/07/02 04:37:41 levine 00014 * Many changes - see change logs in individual programs 00015 * 00016 * 00017 **************************************************************************/ 00018 #ifndef CRC_HH 00019 #define CRC_HH 00020 00021 #include "RecHeaderFormats.hh" 00022 00023 #define CRC32DEF(a,b) {(b) = (((b) & 0x80000000) ? (((b) << 1) | 1 ) : ((b) << 1))^(a) ;} 00024 namespace OLDEVP { 00025 unsigned int compute_crc_bank(Bank* d,unsigned int lcrc = 0 ) ; 00026 unsigned int compute_crc_block(int* d,unsigned int ByteOrdering,int length,unsigned int lcrc = 0 ) ; 00027 } 00028 00029 #endif /* end of CRC_HH */
1.5.9