mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Micro optimization of update_history()
Remove an useless comparison. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
e86468cc63
commit
cdf1f23bc5
1 changed files with 4 additions and 1 deletions
|
@ -2174,8 +2174,11 @@ namespace {
|
|||
H.success(pos.piece_on(move_from(m)), m, depth);
|
||||
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
||||
// fail_high_ply_1() checks if some thread is currently resolving a fail
|
||||
|
|
Loading…
Add table
Reference in a new issue