Inline history and gain getters

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-07-15 15:31:12 +02:00
parent bc0c1c8d7b
commit 3e38e61565
2 changed files with 16 additions and 21 deletions
+12
View 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)