4 /* $Id: crc32.h,v 1.1.1.1 2005/04/11 02:50:46 jack Exp $ */
6 #include <linux/types.h>
8 extern const __u32 crc32_table[256];
10 /* Return a 32-bit CRC of the contents of the buffer. */
13 crc32(__u32 val, const void *ss, int len)
15 const unsigned char *s = ss;
17 val = crc32_table[(val ^ *s++) & 0xff] ^ (val >> 8);