Skip to content

Commit 087b638

Browse files
committed
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.
1 parent 7ad85fc commit 087b638

File tree

3 files changed

+205
-227
lines changed

3 files changed

+205
-227
lines changed

src/benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ void benchmark(const Position& current, istream& is) {
143143
}
144144

145145
uint64_t nodes = 0;
146-
Search::StateStackPtr st;
147146
TimePoint elapsed = now();
148147

149148
for (size_t i = 0; i < fens.size(); ++i)
@@ -157,6 +156,7 @@ void benchmark(const Position& current, istream& is) {
157156

158157
else
159158
{
159+
Search::StateStackPtr st;
160160
Threads.start_thinking(pos, limits, st);
161161
Threads.main()->join();
162162
nodes += Search::RootPos.nodes_searched();

0 commit comments

Comments
 (0)