]> git.sesse.net Git - stockfish/blobdiff - src/history.h
Inline history and gain getters
[stockfish] / src / history.h
index 2abd26b17dbdeb5e07dcf378dab28d1324963516..2665f24fc34628d986edc57effe612ee8c7b06fc 100644 (file)
@@ -74,4 +74,16 @@ private:
 const int HistoryMax = 50000 * OnePly;
 
 
+////
+//// 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)