mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 17:32:13 +00:00
423b87a707
git-svn-id: https://svn.eduke32.com/eduke32@4625 1a8010ca-5511-0410-912e-c29ae57300e0
25 lines
363 B
C
25 lines
363 B
C
#ifndef __crc32_h__
|
|
#define __crc32_h__
|
|
|
|
#include "compat.h"
|
|
|
|
#ifdef EXTERNC
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define POLY 0xEDB88320
|
|
|
|
#ifdef BITNESS64
|
|
extern uint32_t crc32table[8][256];
|
|
#else
|
|
extern uint32_t crc32table[4][256];
|
|
#endif
|
|
|
|
extern uint32_t crc32(const void* data, size_t length, uint32_t crc);
|
|
extern void initcrc32table(void);
|
|
|
|
#ifdef EXTERNC
|
|
}
|
|
#endif
|
|
|
|
#endif
|