mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Raise max Hash to 1TB
And use size_t where appropriate, as suggested on FishCooking. No functional change.
This commit is contained in:
@@ -30,11 +30,9 @@ TranspositionTable TT; // Our global transposition table
|
||||
/// measured in megabytes. Transposition table consists of a power of 2 number
|
||||
/// of clusters and each cluster consists of TTClusterSize number of TTEntry.
|
||||
|
||||
void TranspositionTable::resize(uint64_t mbSize) {
|
||||
void TranspositionTable::resize(size_t mbSize) {
|
||||
|
||||
assert(msb((mbSize * 1024 * 1024) / sizeof(TTCluster)) < 32);
|
||||
|
||||
uint32_t newClusterCount = 1 << msb((mbSize * 1024 * 1024) / sizeof(TTCluster));
|
||||
size_t newClusterCount = size_t(1) << msb((mbSize * 1024 * 1024) / sizeof(TTCluster));
|
||||
|
||||
if (newClusterCount == clusterCount)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user