On Mon, Feb 18, 2013 at 06:03:29PM -0500, Jeff Cody wrote:
> This adds the Castagnoli CRC32C algorithm, using the 0x11EDC6F41
> polynomial.
> 
> This is extracted from the linux kernel cryptographic crc32.c module.
> 
> The algorithm is based on:
> 
> Castagnoli93: Guy Castagnoli and Stefan Braeuer and Martin Herrman
>              "Optimization of Cyclic Redundancy-Check Codes with 24
>               and 32 Parity Bits", IEEE Transactions on Communication,
>               Volume 41, Number 6, June 1993
> 
> Signed-off-by: Jeff Cody <jc...@redhat.com>
> ---
>  include/qemu/crc32c.h |  35 +++++++++++++++
>  util/Makefile.objs    |   1 +
>  util/crc32c.c         | 115 
> ++++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 151 insertions(+)
>  create mode 100644 include/qemu/crc32c.h
>  create mode 100644 util/crc32c.c

Okay.  CRC32C is not the same as zlib's crc32(), so we need this new
code.  Interesting that gcc has built-ins for recent Intel CPUs which
support CRC32C in hardware ;-).

Stefan

Reply via email to