Re: [Qemu-devel] [PATCH 2/3] util/crc32.c: Add CRC-32 implementation

2014-02-17 Thread Peter Maydell
On 17 February 2014 17:19, Will Newton wrote: > Add a table-driven CRC-32 implementation similar in style to the > existing CRC-32C implementation. > +++ b/include/qemu/crc32.h > @@ -0,0 +1,15 @@ > +/* > + * CRC32C Checksum Algorithm > + * > + * Polynomial: 0x04C11DB7 > + * > + */ > + > +#ifnde

[Qemu-devel] [PATCH 2/3] util/crc32.c: Add CRC-32 implementation

2014-02-17 Thread Will Newton
Add a table-driven CRC-32 implementation similar in style to the existing CRC-32C implementation. Signed-off-by: Will Newton --- include/qemu/crc32.h | 15 util/Makefile.objs | 1 + util/crc32.c | 98 3 files changed, 114 i