diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2001-06-23 03:03:24 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2001-06-23 03:03:24 +0000 |
commit | 77e3f319a561894960a3667244df630f8468e60f (patch) | |
tree | fc9efc45a9b54fd86198e0b6a102354b7fc3f531 /src/libFLAC/include/private/crc.h | |
parent | 3d094cd0977cebe902d48086ade1928b35686ba9 (diff) | |
download | flac-77e3f319a561894960a3667244df630f8468e60f.tar.gz |
revamp the ordinal types
Diffstat (limited to 'src/libFLAC/include/private/crc.h')
-rw-r--r-- | src/libFLAC/include/private/crc.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libFLAC/include/private/crc.h b/src/libFLAC/include/private/crc.h index 16b3fe3c..b86d3cb3 100644 --- a/src/libFLAC/include/private/crc.h +++ b/src/libFLAC/include/private/crc.h @@ -26,20 +26,20 @@ ** polynomial = x^8 + x^2 + x^1 + x^0 ** init = 0 */ -extern byte const FLAC__crc8_table[256]; +extern FLAC__byte const FLAC__crc8_table[256]; #define FLAC__CRC8_UPDATE(data, crc) (crc) = FLAC__crc8_table[(crc) ^ (data)]; -void FLAC__crc8_update(const byte data, uint8 *crc); -void FLAC__crc8_update_block(const byte *data, unsigned len, uint8 *crc); -uint8 FLAC__crc8(const byte *data, unsigned len); +void FLAC__crc8_update(const FLAC__byte data, FLAC__uint8 *crc); +void FLAC__crc8_update_block(const FLAC__byte *data, unsigned len, FLAC__uint8 *crc); +FLAC__uint8 FLAC__crc8(const FLAC__byte *data, unsigned len); /* 16 bit CRC generator, MSB shifted first ** polynomial = x^16 + x^15 + x^2 + x^0 ** init = 0 */ -extern uint16 FLAC__crc16_table[256]; +extern FLAC__uint16 FLAC__crc16_table[256]; #define FLAC__CRC16_UPDATE(data, crc) (crc) = ((crc)<<8) ^ FLAC__crc16_table[((crc)>>8) ^ (data)]; -void FLAC__crc16_update(const byte data, uint16 *crc); -void FLAC__crc16_update_block(const byte *data, unsigned len, uint16 *crc); -uint16 FLAC__crc16(const byte *data, unsigned len); +void FLAC__crc16_update(const FLAC__byte data, FLAC__uint16 *crc); +void FLAC__crc16_update_block(const FLAC__byte *data, unsigned len, FLAC__uint16 *crc); +FLAC__uint16 FLAC__crc16(const FLAC__byte *data, unsigned len); #endif |