1/*
2 * $Id: updcrc.h,v 1.1 2009-10-13 22:55:36 didg Exp $
3 */
4
5#ifndef _UPDCRC_H
6#define _UPDCRC_H 1
7
8#define W	16	/* bits in CRC:16	16	16	*/
9
10    /* data type that holds a W-bit unsigned integer */
11#if W <= 16
12#  define WTYPE	unsigned short
13#else /* W <= 16 */
14#  define WTYPE   u_int32_t
15#endif /* W <= 16 */
16
17WTYPE updcrc(WTYPE icrc, unsigned char *icp, int icnt);
18
19#endif /* _UPDCRC_H */
20