From: Marco Costalba Date: Sat, 7 Jan 2017 09:13:49 +0000 (+0100) Subject: Drop Stats c'tors X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=3ab3e55bb5faf57aec864f3bb7268601c11d72be Drop Stats c'tors Now taht we correctly value-initialize Thread objects, we don't need c'tors anymore because tables will be zero-initialized by the compier when Thread object is instanced. Verified that we have no errors with Valgrind. No functional change. --- diff --git a/src/movepick.h b/src/movepick.h index 06a2efca..6fbd8be1 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -41,7 +41,6 @@ struct Stats { static const Value Max = Value(1 << 28); - Stats() { clear(); } const T* operator[](Piece pc) const { return table[pc]; } T* operator[](Piece pc) { return table[pc]; } void clear() { std::memset(table, 0, sizeof(table)); } @@ -66,7 +65,6 @@ typedef Stats CounterMoveHistoryStats; struct FromToStats { - FromToStats() { clear(); } Value get(Color c, Move m) const { return table[c][from_sq(m)][to_sq(m)]; } void clear() { std::memset(table, 0, sizeof(table)); } void update(Color c, Move m, Value v) {