]> git.sesse.net Git - stockfish/blobdiff - src/history.h
Use 16 bits to store a move instead of 17
[stockfish] / src / history.h
index 2abd26b17dbdeb5e07dcf378dab28d1324963516..3fb74134466c272c08185476f918f558873e676c 100644 (file)
@@ -71,7 +71,19 @@ private:
 /// recently have a bigger importance for move ordering than the moves which
 /// have been searched a long time ago.
 
-const int HistoryMax = 50000 * OnePly;
+const int HistoryMax = 50000 * ONE_PLY;
 
 
+////
+//// Inline functions
+////
+
+inline int History::value(Piece p, Square to) const {
+  return history[p][to];
+}
+
+inline Value History::gain(Piece p, Square to) const {
+  return Value(maxStaticValueDelta[p][to]);
+}
+
 #endif // !defined(HISTORY_H_INCLUDED)