qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH 1/4] qemu: add castagnoli crc32c checksum al


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [RFC PATCH 1/4] qemu: add castagnoli crc32c checksum algorithm
Date: Tue, 19 Feb 2013 09:48:13 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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 <address@hidden>
> ---
>  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

[Prev in Thread] Current Thread [Next in Thread]