mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Reformat trace code
Apart from usual renaiming, take advantage of C++11 function template default parmeter to get rid of Eval trampoline functions. Some triviality fixes while there. No functional change.
This commit is contained in:
@@ -143,7 +143,6 @@ void benchmark(const Position& current, istream& is) {
|
||||
}
|
||||
|
||||
uint64_t nodes = 0;
|
||||
Search::StateStackPtr st;
|
||||
TimePoint elapsed = now();
|
||||
|
||||
for (size_t i = 0; i < fens.size(); ++i)
|
||||
@@ -157,6 +156,7 @@ void benchmark(const Position& current, istream& is) {
|
||||
|
||||
else
|
||||
{
|
||||
Search::StateStackPtr st;
|
||||
Threads.start_thinking(pos, limits, st);
|
||||
Threads.main()->join();
|
||||
nodes += Search::RootPos.nodes_searched();
|
||||
|
||||
Reference in New Issue
Block a user