Browse Source

public: crclib: simplify CRC32_ProcessByte

pull/2/head
Alibek Omarov 2 years ago
parent
commit
93ee5b9446
  1. 4
      public/crclib.c

4
public/crclib.c

@ -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…
Cancel
Save