]>
git.saurik.com Git - apt.git/blob - apt-pkg/contrib/crc-16.h
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: crc-16.h,v 1.1 1999/05/23 22:55:54 jgg Exp $
4 /* ######################################################################
6 CRC16 - Compute a 16bit crc very quickly
8 ##################################################################### */
10 #ifndef APTPKG_CRC16_H
11 #define APTPKG_CRC16_H
13 #include <apt-pkg/macros.h>
15 #define INIT_FCS 0xffff
16 unsigned short AddCRC16(unsigned short fcs
, void const *buf
,
17 unsigned long long len
) APT_PURE
;