X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fhistory.h;h=3fb74134466c272c08185476f918f558873e676c;hp=2abd26b17dbdeb5e07dcf378dab28d1324963516;hb=4fa0395eb8db33b23c2a91e4b255021fd940d811;hpb=35782079749c8f16560a13b9740d1a76654c6fe2 diff --git a/src/history.h b/src/history.h index 2abd26b1..3fb74134 100644 --- a/src/history.h +++ b/src/history.h @@ -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)