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:
Marco Costalba
2015-08-25 17:12:51 +02:00
parent 7ad85fca6d
commit 087b638f6c
3 changed files with 229 additions and 251 deletions

View File

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