summaryrefslogtreecommitdiffstats
path: root/include/linux/crc32.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@us.ibm.com>2012-03-23 15:02:25 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-03-23 16:58:38 -0700
commit46c5801eaf86e83cb3a4142ad35188db5011fff0 (patch)
tree2b8a8f7709aa7dadafdf13f823488cf51e2e2fed /include/linux/crc32.h
parent78dff4189708d07cdcaf7bfd1b04ebe78ac9c041 (diff)
downloadlinux-46c5801eaf86e83cb3a4142ad35188db5011fff0.tar.gz
linux-46c5801eaf86e83cb3a4142ad35188db5011fff0.tar.bz2
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)
/*