Bochs/bochs/iodev/crc32.h
Gregory Alexander e519ea4d44 Fixed compile problems in the CRC code, eth.cc, and eth_fbsd.cc.
(Some systems configure with eth_fbsd.cc but can't compile it.)
2001-06-17 23:08:27 +00:00

22 lines
363 B
C++

/* CRC-32 calculator
* Adapted from http://www.createwindow.org/programming/crc32/
*/
#ifndef _CRC_32_H_
#define _CRC_32_H_
#include "bochs.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_