X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.cpp;h=04673901545381a0f00956ed571a10d7023eee66;hp=79aa6cac12de2af28ce2311ced2dee569d562bed;hb=d0587f2c7f31ea30885007beca76e832b8713501;hpb=13a73f67c018e58b2fd46f886c45ef2b75188c8e diff --git a/src/tt.cpp b/src/tt.cpp index 79aa6cac..04673901 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2013 Marco Costalba, Joona Kiiski, Tord Romstad + Copyright (C) 2008-2014 Marco Costalba, Joona Kiiski, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,11 +26,11 @@ TranspositionTable TT; // Our global transposition table -/// TranspositionTable::set_size() sets the size of the transposition table, +/// TranspositionTable::resize() sets the size of the transposition table, /// measured in megabytes. Transposition table consists of a power of 2 number /// of clusters and each cluster consists of ClusterSize number of TTEntry. -void TranspositionTable::set_size(size_t mbSize) { +void TranspositionTable::resize(uint64_t mbSize) { assert(msb((mbSize << 20) / sizeof(TTEntry)) < 32);