X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhistory.h;h=2665f24fc34628d986edc57effe612ee8c7b06fc;hb=14f059072af34bc21b71ae7fc550f03b4a075b3b;hp=2abd26b17dbdeb5e07dcf378dab28d1324963516;hpb=35782079749c8f16560a13b9740d1a76654c6fe2;p=stockfish diff --git a/src/history.h b/src/history.h index 2abd26b1..2665f24f 100644 --- a/src/history.h +++ b/src/history.h @@ -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)