summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/crc-16.h
blob: f30678bac6c6d6efd2f93c30c2861744e28a5ae2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// -*- mode: cpp; mode: fold -*-
// Description								/*{{{*/
// $Id: crc-16.h,v 1.1 1999/05/23 22:55:54 jgg Exp $
/* ######################################################################

   CRC16 - Compute a 16bit crc very quickly
   
   ##################################################################### */
									/*}}}*/
#ifndef APTPKG_CRC16_H
#define APTPKG_CRC16_H

#define INIT_FCS  0xffff
unsigned short AddCRC16(unsigned short fcs, void const *buf,
			unsigned long len);

#endif