xenoborg/alpha/source/crc32.h
blueshogun96@gmail.com e140504ee8
2012-01-05 00:09:50 +00:00

18 lines
310 B
C

#pragma once
#include <stdint.h>
#define POLYNOMIAL 0x04C11DB7
#define CRC_BUFFER_SIZE 4096
#ifdef __cplusplus
extern "C" {
#endif
/* 32-bit CRC code functions */
void crc_generate_tables();
uint32_t crc_update( uint32_t crc_accum, uint8_t* ptr, int size );
#ifdef __cplusplus
}
#endif