Deleted Added
full compact
crc32.c (233288) crc32.c (233517)
1/*-
2 * COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or
3 * code or tables extracted from it, as desired without restriction.
4 */
5
6/*
7 * First, the polynomial itself and its table of feedback terms. The
8 * polynomial is

--- 29 unchanged lines hidden (view full) ---

38 * using byte-swap instructions
39 * polynomial $edb88320
40 *
41 *
42 * CRC32 code derived from work by Gary S. Brown.
43 */
44
45#include <sys/cdefs.h>
1/*-
2 * COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or
3 * code or tables extracted from it, as desired without restriction.
4 */
5
6/*
7 * First, the polynomial itself and its table of feedback terms. The
8 * polynomial is

--- 29 unchanged lines hidden (view full) ---

38 * using byte-swap instructions
39 * polynomial $edb88320
40 *
41 *
42 * CRC32 code derived from work by Gary S. Brown.
43 */
44
45#include <sys/cdefs.h>
46__FBSDID("$FreeBSD: head/sys/boot/common/crc32.c 233288 2012-03-21 20:55:21Z marius $");
46__FBSDID("$FreeBSD: head/sys/boot/common/crc32.c 233517 2012-03-26 18:22:04Z marius $");
47
48#include <sys/types.h>
49
50#include "crc32.h"
51
47
48#include <sys/types.h>
49
50#include "crc32.h"
51
52static const uint32_t const crc32_tab[] = {
52static const uint32_t crc32_tab[] = {
53 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
54 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
55 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
56 0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7,
57 0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,
58 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172,
59 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c,
60 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59,

--- 48 unchanged lines hidden ---
53 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
54 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
55 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
56 0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7,
57 0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,
58 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172,
59 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c,
60 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59,

--- 48 unchanged lines hidden ---