File: crc32c.h

package info (click to toggle)
kernel-source-2.6.8 2.6.8-17sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 221,748 kB
  • ctags: 678,840
  • sloc: ansic: 3,793,905; asm: 183,914; sh: 57,062; makefile: 10,502; perl: 2,733; yacc: 2,601; cpp: 1,712; lex: 1,513; lisp: 218; awk: 59; python: 45
file content (11 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
#ifndef _LINUX_CRC32C_H
#define _LINUX_CRC32C_H

#include <linux/types.h>

extern u32 crc32c_le(u32 crc, unsigned char const *address, size_t length);
extern u32 crc32c_be(u32 crc, unsigned char const *address, size_t length);

#define crc32c(seed, data, length)  crc32c_le(seed, (unsigned char const *)data, length)

#endif	/* _LINUX_CRC32C_H */