mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-03-10 04:31:16 +00:00
public: crclib: simplify CRC32_ProcessByte
This commit is contained in:
parent
c0c8119040
commit
93ee5b9446
@ -104,9 +104,7 @@ void GAME_EXPORT CRC32_ProcessByte( dword *pulCRC, byte ch )
|
|||||||
{
|
{
|
||||||
dword ulCrc = *pulCRC;
|
dword ulCrc = *pulCRC;
|
||||||
|
|
||||||
ulCrc ^= ch;
|
*pulCRC = crc32table[((byte)ulCrc ^ ch)] ^ (ulCrc >> 8);
|
||||||
ulCrc = crc32table[(byte)ulCrc] ^ (ulCrc >> 8);
|
|
||||||
*pulCRC = ulCrc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GAME_EXPORT CRC32_ProcessBuffer( dword *pulCRC, const void *pBuffer, int nBuffer )
|
void GAME_EXPORT CRC32_ProcessBuffer( dword *pulCRC, const void *pBuffer, int nBuffer )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user