Fail* directories reorganized, Code-cleanup (-> coding-style), Typos+comments fixed.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1321 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
25
simulators/bochs/iodev/crc32.h
Normal file
25
simulators/bochs/iodev/crc32.h
Normal file
@ -0,0 +1,25 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id$
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
/* CRC-32 calculator
|
||||
* Adapted from http://www.createwindow.org/programming/crc32/
|
||||
*/
|
||||
|
||||
#ifndef _CRC_32_H_
|
||||
#define _CRC_32_H_
|
||||
|
||||
#include "config.h"
|
||||
|
||||
class CRC_Generator {
|
||||
private:
|
||||
Bit32u crc32_table[256];
|
||||
Bit32u reflect(Bit32u ref, Bit8u ch);
|
||||
public:
|
||||
void init(void);
|
||||
CRC_Generator();
|
||||
Bit32u get_CRC(Bit8u * buf, Bit32u buflen);
|
||||
};
|
||||
|
||||
#endif //_CRC_32_H_
|
||||
|
||||
Reference in New Issue
Block a user