2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 09:56:22 +01:00

public: crclib: simplify CRC32_ProcessByte

This commit is contained in:
Alibek Omarov 2023-06-13 06:46:44 +03:00
parent c0c8119040
commit 93ee5b9446

View File

@ -104,9 +104,7 @@ void GAME_EXPORT CRC32_ProcessByte( dword *pulCRC, byte ch )
{
dword ulCrc = *pulCRC;
ulCrc ^= ch;
ulCrc = crc32table[(byte)ulCrc] ^ (ulCrc >> 8);
*pulCRC = ulCrc;
*pulCRC = crc32table[((byte)ulCrc ^ ch)] ^ (ulCrc >> 8);
}
void GAME_EXPORT CRC32_ProcessBuffer( dword *pulCRC, const void *pBuffer, int nBuffer )