summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/crc-16.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:48 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:48 +0000
commit204fbdcce67a08d33a5e7eb3ca9e7a9ae80918c5 (patch)
treefef1ee61740101afa96ab907003385c9f6db0f08 /apt-pkg/contrib/crc-16.h
parent8b75eb1cadd4db3d6ecb27fa4f441843d3856f77 (diff)
Multiple different versions support
Author: jgg Date: 1999-05-23 22:55:54 GMT Multiple different versions support
Diffstat (limited to 'apt-pkg/contrib/crc-16.h')
-rw-r--r--apt-pkg/contrib/crc-16.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/apt-pkg/contrib/crc-16.h b/apt-pkg/contrib/crc-16.h
new file mode 100644
index 000000000..757104c54
--- /dev/null
+++ b/apt-pkg/contrib/crc-16.h
@@ -0,0 +1,21 @@
+// -*- 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
+
+#ifdef __GNUG__
+#pragma interface "apt-pkg/crc-16.h"
+#endif
+
+#define INIT_FCS 0xffff
+unsigned short AddCRC16(unsigned short fcs, void const *buf,
+ unsigned long len);
+
+#endif