version 1.1, 1995/10/18 08:45:00 |
version 1.2, 1996/03/27 19:32:21 |
|
|
/* $NetBSD: crc.c,v 1.5 1995/03/26 05:15:18 glass Exp $ */ |
/* $OpenBSD$ */ |
|
/* $NetBSD: crc.c,v 1.7 1996/02/27 21:29:53 jtc Exp $ */ |
|
|
/*- |
/*- |
* Copyright (c) 1991, 1993 |
* Copyright (c) 1991, 1993 |
|
|
#ifndef lint |
#ifndef lint |
#if 0 |
#if 0 |
static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93"; |
static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93"; |
|
static char rcsid[] = "$NetBSD: crc.c,v 1.7 1996/02/27 21:29:53 jtc Exp $"; |
#else |
#else |
static char rcsid[] = "$NetBSD: crc.c,v 1.5 1995/03/26 05:15:18 glass Exp $"; |
static char rcsid[] = "$OpenBSD$"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
static u_int32_t crctab[] = { |
#include "extern.h" |
|
|
|
static const u_int32_t crctab[] = { |
0x0, |
0x0, |
0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, |
0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, |
0x1a864db2, 0x1e475005, 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, |
0x1a864db2, 0x1e475005, 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, |