X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.h;h=5ca5c237d82f7ec38974b56944b267c5c688a76b;hp=c37b9d3ff6f74c96bbfe3853d8747f0f72804933;hb=8d4caebabe91a473bd052d2f771e79a184902c31;hpb=6442981cb649d2008275f12564aeeb69e73f41f5 diff --git a/src/tt.h b/src/tt.h index c37b9d3f..5ca5c237 100644 --- a/src/tt.h +++ b/src/tt.h @@ -17,21 +17,13 @@ along with this program. If not, see . */ - #if !defined(TT_H_INCLUDED) #define TT_H_INCLUDED #include -#include "depth.h" #include "move.h" -#include "value.h" - - -//// -//// Types -//// - +#include "types.h" /// A simple fixed size hash table used to store pawns and material /// configurations. It is basically just an array of Entry objects. @@ -56,7 +48,7 @@ public: memset(entries, 0, HashSize * sizeof(Entry)); } - ~SimpleHash() { delete [] entries; } + virtual ~SimpleHash() { delete [] entries; } Entry* find(Key key) const { return entries + ((uint32_t)key & (HashSize - 1)); }