Skip to content

Commit

Permalink
Avoid unnecessarily initializing TTData with 0's
Browse files Browse the repository at this point in the history
No functional change
bench: 999324
  • Loading branch information
mstembera committed Jan 12, 2025
1 parent c76c179 commit f31c774
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tt.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ struct TTData {
Depth depth;
Bound bound;
bool is_pv;

TTData() {}; // Prevent the default constructor from initializing to 0
TTData(Move m, Value v, Value ev, Depth d, Bound b, bool pv) :
move(m), value(v), eval(ev), depth(d), bound(b), is_pv(pv) {};
};


Expand Down

0 comments on commit f31c774

Please sign in to comment.