]> git.saurik.com Git - apt.git/blame - apt-pkg/contrib/crc-16.h
This is realloc, not reallocf: be more careful :/.
[apt.git] / apt-pkg / contrib / crc-16.h
CommitLineData
204fbdcc
AL
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3// $Id: crc-16.h,v 1.1 1999/05/23 22:55:54 jgg Exp $
4/* ######################################################################
5
6 CRC16 - Compute a 16bit crc very quickly
7
8 ##################################################################### */
9 /*}}}*/
10#ifndef APTPKG_CRC16_H
11#define APTPKG_CRC16_H
12
a02db58f
DK
13#include <apt-pkg/macros.h>
14
204fbdcc 15#define INIT_FCS 0xffff
f903069c 16unsigned short AddCRC16Byte(unsigned short fcs, unsigned char byte) APT_CONST;
204fbdcc 17unsigned short AddCRC16(unsigned short fcs, void const *buf,
a02db58f 18 unsigned long long len) APT_PURE;
204fbdcc
AL
19
20#endif