From f31c77414dba989d4022e224049e856464d0a7c6 Mon Sep 17 00:00:00 2001 From: mstembera Date: Sat, 11 Jan 2025 22:34:51 -0800 Subject: [PATCH] Avoid unnecessarily initializing TTData with 0's No functional change bench: 999324 --- src/tt.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tt.h b/src/tt.h index f0936fd282c..73dc5d65e41 100644 --- a/src/tt.h +++ b/src/tt.h @@ -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) {}; };