src/Message/CRC.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /***************************************************************************
00003  *
00004  * The IPPL Framework
00005  * 
00006  *
00007  * Visit http://people.web.psi.ch/adelmann/ for more details
00008  *
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *
00013  * Simple routine to calculate 32-bit CRC, assuming 32-bit integers.
00014  * 
00015  ***************************************************************************/
00016 
00017 #ifndef IPPL_MESSAGE_CRC_H
00018 #define IPPL_MESSAGE_CRC_H
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 typedef unsigned int CRCTYPE;
00025 
00026 /* calculate the CRC for the given buffer of bytes, of length icnt */
00027 CRCTYPE crc(void *icp, int icnt);
00028 
00029 #ifdef __cplusplus
00030 }
00031 #endif
00032 
00033 
00034 #endif // IPPL_MESSAGE_CRC_H
00035 
00036 /***************************************************************************
00037  * $RCSfile: CRC.h,v $   $Author: adelmann $
00038  * $Revision: 1.1.1.1 $   $Date: 2003/01/23 07:40:28 $
00039  * IPPL_VERSION_ID: $Id: CRC.h,v 1.1.1.1 2003/01/23 07:40:28 adelmann Exp $ 
00040  ***************************************************************************/
00041 

Generated on Mon Jan 16 13:23:52 2006 for IPPL by  doxygen 1.4.6