]> git.sesse.net Git - stockfish/blobdiff - src/tt.h
Allow TT entries with key16==0 to be fetched
[stockfish] / src / tt.h
index c177ca52deba7065a03cc5a65e5a9e37b0effb9d..fdfd67694e92f6a109c72a0ab25f354689076baa 100644 (file)
--- a/src/tt.h
+++ b/src/tt.h
 /// TTEntry struct is the 10 bytes transposition table entry, defined as below:
 ///
 /// key        16 bit
-/// move       16 bit
-/// value      16 bit
-/// eval value 16 bit
+/// depth       8 bit
 /// generation  5 bit
 /// pv node     1 bit
 /// bound type  2 bit
-/// depth       8 bit
+/// move       16 bit
+/// value      16 bit
+/// eval value 16 bit
 
 struct TTEntry {
 
@@ -47,11 +47,11 @@ private:
   friend class TranspositionTable;
 
   uint16_t key16;
+  uint8_t  depth8;
+  uint8_t  genBound8;
   uint16_t move16;
   int16_t  value16;
   int16_t  eval16;
-  uint8_t  genBound8;
-  uint8_t  depth8;
 };