Skip to content

Commit ae56056

Browse files
committed
Move schashSizes to module since it is not used anywhere outside
1 parent eb490d6 commit ae56056

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/gdlib/gmsobj.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ void TQuickSortClass::QuickSort( int L, int R )
7575
}
7676
}
7777

78+
constexpr std::array schashSizes { SCHASHSIZE0, SCHASHSIZE1, SCHASHSIZE2, SCHASHSIZE3,
79+
SCHASHSIZE4, SCHASHSIZE5, SCHASHSIZE6 };
80+
7881
int getSCHashSize( int itemCount )
7982
{
8083
int k { itemCount / SCHASH_FACTOR_MIN };

src/gdlib/gmsobj.h

-3
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,6 @@ constexpr int SCHASHSIZE0 = 10007,
630630
// we do not need it so big as maxint32: maxint32 / SCHASH_FACTOR_MIN is big enough
631631
SCHASHSIZE6 = 357913951;
632632

633-
constexpr std::array schashSizes { SCHASHSIZE0, SCHASHSIZE1, SCHASHSIZE2, SCHASHSIZE3,
634-
SCHASHSIZE4, SCHASHSIZE5, SCHASHSIZE6 };
635-
636633
int getSCHashSize( int itemCount );
637634

638635
struct THashRecord {

0 commit comments

Comments
 (0)