Navigation Menu

Skip to content

Commit

Permalink
make CRC32::GetChecksum() inline
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbartholomew committed Apr 15, 2012
1 parent 256724d commit 65c9891
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/CRC32.cpp
Expand Up @@ -34,8 +34,3 @@ void CRC32::AddData(const char *data, int length)
while (length--) while (length--)
m_checksum = (m_checksum >> 8) ^ s_lookupTable[(m_checksum & 0xff) ^ *buf++]; m_checksum = (m_checksum >> 8) ^ s_lookupTable[(m_checksum & 0xff) ^ *buf++];
} }

Uint32 CRC32::GetChecksum() const
{
return m_checksum & 0xffffffff;
}
2 changes: 1 addition & 1 deletion src/CRC32.h
Expand Up @@ -9,7 +9,7 @@ class CRC32 {
CRC32(); CRC32();


void AddData(const char *data, int length); void AddData(const char *data, int length);
Uint32 GetChecksum() const; Uint32 GetChecksum() const { return m_checksum; }


private: private:
Uint32 m_checksum; Uint32 m_checksum;
Expand Down

0 comments on commit 65c9891

Please sign in to comment.