Rewrote network stack, started working on porting to 64-bit
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#include "crc32.h"
|
||||
|
||||
static unsigned long CRCTable[256] =
|
||||
static unsigned int CRCTable[256] =
|
||||
{
|
||||
0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F,
|
||||
0xE963A535, 0x9E6495A3, 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988,
|
||||
@ -122,7 +122,7 @@ crc_t get_crc32_case(const char * buf, size_t len)
|
||||
crc_t get_fast_hash(const char * key, size_t len)
|
||||
{
|
||||
const char * end = key + len;
|
||||
unsigned long h = 0;
|
||||
unsigned int h = 0;
|
||||
|
||||
while (key < end)
|
||||
{
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
typedef unsigned long crc_t;
|
||||
typedef unsigned int crc_t;
|
||||
|
||||
crc_t get_crc32(const char * buffer, size_t count);
|
||||
crc_t get_crc32_case(const char * buffer, size_t count);
|
||||
|
Reference in New Issue
Block a user