mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Pass Position as const ref in update_stats()
No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
6ba1d3ead6
commit
f89a8f0769
@@ -94,7 +94,7 @@ namespace {
|
|||||||
void id_loop(Position& pos);
|
void id_loop(Position& pos);
|
||||||
Value value_to_tt(Value v, int ply);
|
Value value_to_tt(Value v, int ply);
|
||||||
Value value_from_tt(Value v, int ply);
|
Value value_from_tt(Value v, int ply);
|
||||||
void update_stats(Position& pos, Stack* ss, Move move, Depth depth, Move* quiets, int quietsCnt);
|
void update_stats(const Position& pos, Stack* ss, Move move, Depth depth, Move* quiets, int quietsCnt);
|
||||||
string uci_pv(const Position& pos, int depth, Value alpha, Value beta);
|
string uci_pv(const Position& pos, int depth, Value alpha, Value beta);
|
||||||
|
|
||||||
struct Skill {
|
struct Skill {
|
||||||
@@ -1267,7 +1267,7 @@ moves_loop: // When in check and at SpNode search starts from here
|
|||||||
// update_stats() updates killers, history, countermoves and followupmoves stats after a fail-high
|
// update_stats() updates killers, history, countermoves and followupmoves stats after a fail-high
|
||||||
// of a quiet move.
|
// of a quiet move.
|
||||||
|
|
||||||
void update_stats(Position& pos, Stack* ss, Move move, Depth depth, Move* quiets, int quietsCnt) {
|
void update_stats(const Position& pos, Stack* ss, Move move, Depth depth, Move* quiets, int quietsCnt) {
|
||||||
|
|
||||||
if (ss->killers[0] != move)
|
if (ss->killers[0] != move)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user