summaryrefslogtreecommitdiffstats
path: root/include/linux/crc32.h
diff options
context:
space:
mode:
authorDarrick J. Wong2012-03-23 23:02:25 +0100
committerLinus Torvalds2012-03-24 00:58:38 +0100
commit46c5801eaf86e83cb3a4142ad35188db5011fff0 (patch)
tree2b8a8f7709aa7dadafdf13f823488cf51e2e2fed /include/linux/crc32.h
parentcrc32: add note about this patchset to crc32.c (diff)
downloadkernel-qcow2-linux-46c5801eaf86e83cb3a4142ad35188db5011fff0.tar.gz
kernel-qcow2-linux-46c5801eaf86e83cb3a4142ad35188db5011fff0.tar.xz
kernel-qcow2-linux-46c5801eaf86e83cb3a4142ad35188db5011fff0.zip
crc32: bolt on crc32c
Reuse the existing crc32 code to stamp out a crc32c implementation. Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Bob Pearson <rpearson@systemfabricworks.com> Cc: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/crc32.h')
-rw-r--r--include/linux/crc32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/crc32.h b/include/linux/crc32.h
index 391a259b2cc9..68267b64bb98 100644
--- a/include/linux/crc32.h
+++ b/include/linux/crc32.h
@@ -11,6 +11,8 @@
extern u32 crc32_le(u32 crc, unsigned char const *p, size_t len);
extern u32 crc32_be(u32 crc, unsigned char const *p, size_t len);
+extern u32 __crc32c_le(u32 crc, unsigned char const *p, size_t len);
+
#define crc32(seed, data, length) crc32_le(seed, (unsigned char const *)(data), length)
/*