1
0
Fork 0
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:
Marco Costalba 2014-04-27 00:25:18 +02:00
parent 55604f156b
commit cb4ac4221e

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)]; k ^= Zobrist::enpassant[file_of(st->epSquare)];
} }
if (type_of(m) == PROMOTION) else if (type_of(m) == PROMOTION)
{ {
PieceType promotion = promotion_type(m); PieceType promotion = promotion_type(m);