Raise max Hash to 1TB

And use size_t where appropriate, as suggested on FishCooking.

No functional change.
This commit is contained in:
lucasart
2014-07-01 18:13:20 +08:00
parent 6b354305e1
commit 24ba204931
3 changed files with 5 additions and 7 deletions

View File

@@ -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;