mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 03:26:24 +08:00
Avoid constructing an empty tuple in qsearch
Avoid constructing, passing as a parameter and binding a useless empty tuple of pointers in the qsearch move picker constructor. Also reformat the scoring function in movepicker.cpp and do some cleaning in evaluate.cpp while there. No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
5ea327d924
commit
002bf4d8db
@@ -94,7 +94,7 @@ public:
|
||||
MovePicker(const MovePicker&) = delete;
|
||||
MovePicker& operator=(const MovePicker&) = delete;
|
||||
MovePicker(const Position&, Move, Value);
|
||||
MovePicker(const Position&, Move, Depth, const ButterflyHistory*, const PieceToHistory**, Square);
|
||||
MovePicker(const Position&, Move, Depth, const ButterflyHistory*, Square);
|
||||
MovePicker(const Position&, Move, Depth, const ButterflyHistory*, const PieceToHistory**, Move, Move*);
|
||||
Move next_move(bool skipQuiets = false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user