bglibs
bglibs/crc16_arc.h
1#ifndef CRC16__ARC__H__
2#define CRC16__ARC__H__
3
4#include "gcrc.h"
5
6#define CRC16_ARC_POLY ((uint16)0x8005)
7#define CRC16_ARC_INIT ((uint16)0)
8#define CRC16_ARC_POST ((uint16)0)
9
10extern const uint16 crc16_arc_table[256];
11#define crc16_arc_update(C,D,L) gcrc16rfl((C),(D),(L),crc16_arc_table)
12#define crc16_arc_block(B,L) crc16_arc_update(0,(B),(L))
13
14#endif