mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
a8d2532645
No header includes qemu-common.h after this commit, as prescribed by qemu-common.h's file comment. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190523143508.25387-5-armbru@redhat.com> [Rebased with conflicts resolved automatically, except for include/hw/arm/xlnx-zynqmp.h hw/arm/nrf51_soc.c hw/arm/msf2-soc.c block/qcow2-refcount.c block/qcow2-cluster.c block/qcow2-cache.c target/arm/cpu.h target/lm32/cpu.h target/m68k/cpu.h target/mips/cpu.h target/moxie/cpu.h target/nios2/cpu.h target/openrisc/cpu.h target/riscv/cpu.h target/tilegx/cpu.h target/tricore/cpu.h target/unicore32/cpu.h target/xtensa/cpu.h; bsd-user/main.c and net/tap-bsd.c fixed up]
35 lines
998 B
C
35 lines
998 B
C
/*
|
|
* Castagnoli CRC32C Checksum Algorithm
|
|
*
|
|
* Polynomial: 0x11EDC6F41
|
|
*
|
|
* 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
|
|
*
|
|
* Copyright (c) 2013 Red Hat, Inc.,
|
|
*
|
|
* Authors:
|
|
* Jeff Cody <jcody@redhat.com>
|
|
*
|
|
* Based on the Linux kernel cryptographic crc32c module,
|
|
*
|
|
* Copyright (c) 2004 Cisco Systems, Inc.
|
|
* Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the Free
|
|
* Software Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
*/
|
|
|
|
#ifndef QEMU_CRC32C_H
|
|
#define QEMU_CRC32C_H
|
|
|
|
|
|
uint32_t crc32c(uint32_t crc, const uint8_t *data, unsigned int length);
|
|
|
|
#endif
|