File: crc16_arc.h

package info (click to toggle)
bglibs 2.04%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,468 kB
  • sloc: ansic: 15,821; perl: 674; sh: 63; makefile: 29
file content (14 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef CRC16__ARC__H__
#define CRC16__ARC__H__

#include "gcrc.h"

#define CRC16_ARC_POLY ((uint16)0x8005)
#define CRC16_ARC_INIT ((uint16)0)
#define CRC16_ARC_POST ((uint16)0)

extern const uint16 crc16_arc_table[256];
#define crc16_arc_update(C,D,L) gcrc16rfl((C),(D),(L),crc16_arc_table)
#define crc16_arc_block(B,L) crc16_arc_update(0,(B),(L))

#endif