Re: [PATCH 2/3] libcrc32c: Expose big-endian version of crc32c

2011-09-27 Thread Herbert Xu
On Tue, Sep 27, 2011 at 03:12:53PM -0700, Darrick J. Wong wrote: > Provide a big-endian version of crc32c for modules that want it. Who is going to use this? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- T

Re: [PATCH v2 0/3] crc32c: Add faster algorithm and self-test code

2011-09-27 Thread Darrick J. Wong
On Tue, Sep 27, 2011 at 03:12:39PM -0700, Darrick J. Wong wrote: > Hi all, > > This patchset replaces the current crc32c software implementation, which uses > a > slow per-byte lookup table algorithm, with a faster implementation that uses > an > adaptation of the slice-by-8 algorithm that Bob P

[PATCH 2/3] libcrc32c: Expose big-endian version of crc32c

2011-09-27 Thread Darrick J. Wong
Provide a big-endian version of crc32c for modules that want it. Signed-off-by: Darrick J. Wong --- include/linux/crc32c.h |5 +++-- lib/libcrc32c.c| 43 ++- 2 files changed, 37 insertions(+), 11 deletions(-) diff --git a/include/linux/crc3

[PATCH v2 0/3] crc32c: Add faster algorithm and self-test code

2011-09-27 Thread Darrick J. Wong
Hi all, This patchset replaces the current crc32c software implementation, which uses a slow per-byte lookup table algorithm, with a faster implementation that uses an adaptation of the slice-by-8 algorithm that Bob Pearson has been pushing for crc32. The motivation for this patchset is that I am

[PATCH 3/3] crc32c: Implement a self-test for CRC32c

2011-09-27 Thread Darrick J. Wong
This is a self-test for the CRC32c code. Signed-off-by: Darrick J. Wong --- crypto/tcrypt.c |6 ++ crypto/testmgr.c | 36 +-- crypto/testmgr.h | 177 +- 3 files changed, 211 insertions(+), 8 deletions(-) diff --git a/crypto/tc

[PATCH 1/3] crc32c: Implement CRC32c with slicing-by-8 algorithm

2011-09-27 Thread Darrick J. Wong
The existing CRC32c implementation uses Sarwate's algorithm to calculate the code one byte at a time. Using slicing-by-8, we can process buffers 8 bytes at a time, for a substantial increase in performance. Signed-off-by: Darrick J. Wong --- crypto/Makefile | 11 + crypto/crc32c.c |