6 extern const uint32_t crc32_table
[256];
8 /* Return a 32-bit CRC of the contents of the buffer. */
10 static inline uint32_t
11 crc32(uint32_t val
, const void *ss
, int len
)
13 const unsigned char *s
= ss
;
15 val
= crc32_table
[(val
^ *s
++) & 0xff] ^ (val
>> 8);
19 static inline unsigned int crc32buf(char *buf
, size_t len
)
21 return crc32(0xFFFFFFFF, buf
, len
);
This page took 0.043981 seconds and 5 git commands to generate.