The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home BasePack DStruct Procedures and Functions CalcNextCRC16 | |||||||||
See also: CalcNextCRC32, CRC16ofBuffer | |||||||||
CalcNextCRC16 |
|||||||||
The function CalcNextCRC16 calculates the CRC-16 stream according to the following polynomial: X^16+X^12+X^5+1. The parameter inbyte contains the next byte to be encoded, the parameter crc holds the current CRC word. Please note that the CRC is calculated by a table-driven algorithm, which guarantees maximum speed (sacrificing speed to code size).
|