crc-16.h 539 B

1234567891011121314151617181920
  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. CRC16 - Compute a 16bit crc very quickly
  6. ##################################################################### */
  7. /*}}}*/
  8. #ifndef APTPKG_CRC16_H
  9. #define APTPKG_CRC16_H
  10. #include <apt-pkg/macros.h>
  11. #define INIT_FCS 0xffff
  12. unsigned short AddCRC16(unsigned short fcs, void const *buf,
  13. unsigned long long len) APT_PURE;
  14. #endif