1
0
Fork 0

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.
pull/358/head^2
Marco Costalba 2014-04-27 00:25:18 +02:00
parent 55604f156b
commit cb4ac4221e
1 changed files with 1 additions and 1 deletions

View File

@ -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);