crc.c (200420) | crc.c (200462) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * James W. Williams of NASA Goddard Space Flight Center. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 26 unchanged lines hidden (view full) --- 35 */ 36 37#ifndef lint 38#if 0 39static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93"; 40#endif 41#endif /* not lint */ 42#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * James W. Williams of NASA Goddard Space Flight Center. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 26 unchanged lines hidden (view full) --- 35 */ 36 37#ifndef lint 38#if 0 39static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93"; 40#endif 41#endif /* not lint */ 42#include <sys/cdefs.h> |
43__FBSDID("$FreeBSD: head/usr.bin/cksum/crc.c 200420 2009-12-11 23:35:38Z delphij $"); | 43__FBSDID("$FreeBSD: head/usr.bin/cksum/crc.c 200462 2009-12-13 03:14:06Z delphij $"); |
44 45#include <sys/types.h> 46 | 44 45#include <sys/types.h> 46 |
47#include <stdint.h> |
|
47#include <unistd.h> 48 49#include "extern.h" 50 51static const uint32_t crctab[] = { 52 0x0, 53 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, 54 0x1a864db2, 0x1e475005, 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, --- 92 unchanged lines hidden --- | 48#include <unistd.h> 49 50#include "extern.h" 51 52static const uint32_t crctab[] = { 53 0x0, 54 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, 55 0x1a864db2, 0x1e475005, 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, --- 92 unchanged lines hidden --- |