X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=6bab114c11812868dd0b9e2c67ae04c5bfc06df5;hp=9cc8d4feb6ac048eebc108d1941f2bf3179f057a;hb=dad9a1eca7cd43fd2ac0a4f78660e67c12bf3219;hpb=731a9f3806fec9956fee6f73b25c504503edc4bf diff --git a/src/search.cpp b/src/search.cpp index 9cc8d4fe..6bab114c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -76,10 +76,10 @@ namespace { void set_move_nodes(int moveNum, int64_t nodes); void set_move_pv(int moveNum, const Move pv[]); Move get_move_pv(int moveNum, int i) const; - int64_t get_move_cumulative_nodes(int moveNum); + int64_t get_move_cumulative_nodes(int moveNum) const; int move_count() const; Move scan_for_easy_move() const; - inline void sort(); + void sort(); void sort_multipv(int n); private: @@ -1655,19 +1655,19 @@ namespace { // Simple accessor methods for the RootMoveList class - Move RootMoveList::get_move(int moveNum) const { + inline Move RootMoveList::get_move(int moveNum) const { return moves[moveNum].move; } - Value RootMoveList::get_move_score(int moveNum) const { + inline Value RootMoveList::get_move_score(int moveNum) const { return moves[moveNum].score; } - void RootMoveList::set_move_score(int moveNum, Value score) { + inline void RootMoveList::set_move_score(int moveNum, Value score) { moves[moveNum].score = score; } - void RootMoveList::set_move_nodes(int moveNum, int64_t nodes) { + inline void RootMoveList::set_move_nodes(int moveNum, int64_t nodes) { moves[moveNum].nodes = nodes; moves[moveNum].cumulativeNodes += nodes; } @@ -1679,15 +1679,15 @@ namespace { moves[moveNum].pv[j] = MOVE_NONE; } - Move RootMoveList::get_move_pv(int moveNum, int i) const { + inline Move RootMoveList::get_move_pv(int moveNum, int i) const { return moves[moveNum].pv[i]; } - int64_t RootMoveList::get_move_cumulative_nodes(int moveNum) { + inline int64_t RootMoveList::get_move_cumulative_nodes(int moveNum) const { return moves[moveNum].cumulativeNodes; } - int RootMoveList::move_count() const { + inline int RootMoveList::move_count() const { return count; }