X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.cpp;h=9f0bc4ba63091919a123fad9a2185f5f8e1e4fa6;hp=5fa1290b9f721400cdb70d785277bc9fd5a8b736;hb=8ef9bc5a9588c49a9c32f87b025980aed794ecd6;hpb=626d43a329adca379421db5d378e33df0868584b 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);