X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.cpp;fp=src%2Ftt.cpp;h=9f0bc4ba63091919a123fad9a2185f5f8e1e4fa6;hp=5fa1290b9f721400cdb70d785277bc9fd5a8b736;hb=6cc56141245abec88861e38e0a44615e4d675813;hpb=31b82432729fe7a957b84f2c8189c54f401a855f diff --git a/src/tt.cpp b/src/tt.cpp index 5fa1290b..9f0bc4ba 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -36,12 +36,7 @@ TranspositionTable TT; // Our global transposition table void TranspositionTable::resize(size_t mbSize) { - size_t newClusterCount = mbSize * 1024 * 1024 / sizeof(Cluster); - - if (newClusterCount == clusterCount) - return; - - clusterCount = newClusterCount; + clusterCount = mbSize * 1024 * 1024 / sizeof(Cluster); free(mem); mem = malloc(clusterCount * sizeof(Cluster) + CacheLineSize - 1);