X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.h;h=fe4cee62ae39a83ec94ad3d232289daa94a7d395;hp=5c3ddc5269de6e302f2b50566705c13a1f01b79f;hb=786564068bb22c750c41649733d4aa6733accaec;hpb=a38b14bd333b73bab84125b272cecf2291f82a27
diff --git a/src/tt.h b/src/tt.h
index 5c3ddc52..fe4cee62 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.
@@ -59,6 +51,7 @@ public:
virtual ~SimpleHash() { delete [] entries; }
Entry* find(Key key) const { return entries + ((uint32_t)key & (HashSize - 1)); }
+ void prefetch(Key key) const { ::prefetch((char*)find(key)); }
protected:
Entry* entries;