Skip to content

Commit

Permalink
Move schashSizes to module since it is not used anywhere outside
Browse files Browse the repository at this point in the history
  • Loading branch information
0x17 committed Apr 3, 2024
1 parent eb490d6 commit ae56056
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/gdlib/gmsobj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ void TQuickSortClass::QuickSort( int L, int R )
}
}

constexpr std::array schashSizes { SCHASHSIZE0, SCHASHSIZE1, SCHASHSIZE2, SCHASHSIZE3,
SCHASHSIZE4, SCHASHSIZE5, SCHASHSIZE6 };

int getSCHashSize( int itemCount )
{
int k { itemCount / SCHASH_FACTOR_MIN };
Expand Down
3 changes: 0 additions & 3 deletions src/gdlib/gmsobj.h
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,6 @@ constexpr int SCHASHSIZE0 = 10007,
// we do not need it so big as maxint32: maxint32 / SCHASH_FACTOR_MIN is big enough
SCHASHSIZE6 = 357913951;

constexpr std::array schashSizes { SCHASHSIZE0, SCHASHSIZE1, SCHASHSIZE2, SCHASHSIZE3,
SCHASHSIZE4, SCHASHSIZE5, SCHASHSIZE6 };

int getSCHashSize( int itemCount );

struct THashRecord {
Expand Down

0 comments on commit ae56056

Please sign in to comment.