Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/crc32.h
blob: d2a65fe3306bdee30fe24d3b62c3a1fc96c0801b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Ripped from the linux kernel crc32 code
 * 
 * This source code is licensed under the GNU General Public License,
 * Version 2.  
 */
#include <stdint.h>
#include <stddef.h>

typedef uint32_t u32;

extern u32  crc32_le(u32 crc, unsigned char const *p, size_t len);
#define crc32(seed, data, length)  crc32_le(seed, (unsigned char const *)data, length)
#define CRCPOLY_LE 0xedb88320