mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Remove 'update gains' hack
Use (move != MOVE_NONE) condition to filtering out updating gains at root. bench: 8454456
This commit is contained in:
@@ -270,7 +270,6 @@ namespace {
|
|||||||
Value bestValue, alpha, beta, delta;
|
Value bestValue, alpha, beta, delta;
|
||||||
|
|
||||||
std::memset(ss-2, 0, 5 * sizeof(Stack));
|
std::memset(ss-2, 0, 5 * sizeof(Stack));
|
||||||
(ss-1)->currentMove = MOVE_NULL; // Hack to skip update gains
|
|
||||||
|
|
||||||
depth = 0;
|
depth = 0;
|
||||||
BestMoveChanges = 0;
|
BestMoveChanges = 0;
|
||||||
@@ -553,6 +552,7 @@ namespace {
|
|||||||
&& ss->staticEval != VALUE_NONE
|
&& ss->staticEval != VALUE_NONE
|
||||||
&& (ss-1)->staticEval != VALUE_NONE
|
&& (ss-1)->staticEval != VALUE_NONE
|
||||||
&& (move = (ss-1)->currentMove) != MOVE_NULL
|
&& (move = (ss-1)->currentMove) != MOVE_NULL
|
||||||
|
&& move != MOVE_NONE
|
||||||
&& type_of(move) == NORMAL)
|
&& type_of(move) == NORMAL)
|
||||||
{
|
{
|
||||||
Square to = to_sq(move);
|
Square to = to_sq(move);
|
||||||
|
|||||||
Reference in New Issue
Block a user