--- hatari/src/includes/utils.h 2019/04/01 07:14:50 1.1.1.1 +++ hatari/src/includes/utils.h 2019/04/09 08:50:28 1.1.1.3 @@ -10,10 +10,15 @@ #include -#define CRC32_POLY 0x04c11db7 /* IEEE 802.3 recommandation */ +#define CRC32_POLY 0x04c11db7 /* IEEE 802.3 recommandation */ -void crc32_reset ( Uint32 *crc ); -void crc32_add_byte ( Uint32 *crc , Uint8 c ); +extern void crc32_reset ( Uint32 *crc ); +extern void crc32_add_byte ( Uint32 *crc , Uint8 c ); + +#define CRC16_POLY 0x1021 /* CCITT */ + +extern void crc16_reset ( Uint16 *crc ); +extern void crc16_add_byte ( Uint16 *crc , Uint8 c ); #endif /* HATARI_UTILS_H */