mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Speed up by almost 3%
This apparentely silly tweak allows to speed up the bench by almost 3%. Not clear why, repeating with perft, the speed up vanishes. Suggested by Jonathan Calovski. No functional change.
This commit is contained in:
parent
55604f156b
commit
cb4ac4221e
1 changed files with 1 additions and 1 deletions
|
@ -821,7 +821,7 @@ void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI
|
|||
k ^= Zobrist::enpassant[file_of(st->epSquare)];
|
||||
}
|
||||
|
||||
if (type_of(m) == PROMOTION)
|
||||
else if (type_of(m) == PROMOTION)
|
||||
{
|
||||
PieceType promotion = promotion_type(m);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue