mirror of
https://github.com/open-develop/xenoborg.git
synced 2025-04-02 13:21:42 -04:00
18 lines
310 B
C
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
|