]> git.sesse.net Git - stockfish/blobdiff - src/tt.h
Polished Makefile for *nix
[stockfish] / src / tt.h
index c570761bdec0fd91120fe99a28b1b18f562c7bcc..08121f66f699a9bcf7e6b1e54893b0636f75f80b 100644 (file)
--- a/src/tt.h
+++ b/src/tt.h
@@ -87,12 +87,19 @@ public:
   TTEntry* retrieve(const Key posKey) const;
   void new_search();
   void insert_pv(const Position& pos, Move pv[]);
+  void extract_pv(const Position& pos, Move pv[]);
   int full() const;
 
 private:
   inline TTEntry* first_entry(const Key posKey) const;
 
-  unsigned size, writes;
+  // Be sure 'writes' is at least one cacheline away
+  // from read only variables.
+  unsigned char pad_before[64 - sizeof(unsigned)];
+  unsigned writes; // heavy SMP read/write access here
+  unsigned char pad_after[64];
+
+  unsigned size;
   TTEntry* entries;
   uint8_t generation;
 };