mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00:00
Micro optimization of update_history()
Remove an useless comparison. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+4
-1
@@ -2174,8 +2174,11 @@ namespace {
|
|||||||
H.success(pos.piece_on(move_from(m)), m, depth);
|
H.success(pos.piece_on(move_from(m)), m, depth);
|
||||||
|
|
||||||
for (int i = 0; i < moveCount - 1; i++)
|
for (int i = 0; i < moveCount - 1; i++)
|
||||||
if (ok_to_history(pos, movesSearched[i]) && m != movesSearched[i])
|
{
|
||||||
|
assert(m != movesSearched[i]);
|
||||||
|
if (ok_to_history(pos, movesSearched[i]))
|
||||||
H.failure(pos.piece_on(move_from(movesSearched[i])), movesSearched[i]);
|
H.failure(pos.piece_on(move_from(movesSearched[i])), movesSearched[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// fail_high_ply_1() checks if some thread is currently resolving a fail
|
// fail_high_ply_1() checks if some thread is currently resolving a fail
|
||||||
|
|||||||
Reference in New Issue
Block a user