mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 10:36:26 +08:00
Further tweak accurate pv
It is a non functional change, but because we now skip copying of pv[] in SpNode, patch has been tested for regression with 3 threads: STC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 54668 W: 9873 L: 9809 D: 34986 No functional change.
This commit is contained in:
@@ -56,9 +56,7 @@ struct Stack {
|
||||
/// all non-pv moves.
|
||||
struct RootMove {
|
||||
|
||||
RootMove(Move m) : score(-VALUE_INFINITE), prevScore(-VALUE_INFINITE) {
|
||||
pv.push_back(m); pv.push_back(MOVE_NONE);
|
||||
}
|
||||
RootMove(Move m) : score(-VALUE_INFINITE), prevScore(-VALUE_INFINITE), pv(1, m) {}
|
||||
|
||||
bool operator<(const RootMove& m) const { return score > m.score; } // Ascending sort
|
||||
bool operator==(const Move& m) const { return pv[0] == m; }
|
||||
|
||||
Reference in New Issue
Block a user