1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Speed up picking of killers

Changing the order of the conditions gives
about 1% speed up!

No functional change.
This commit is contained in:
Marco Costalba 2014-04-25 12:53:51 +02:00
parent 3705559fdb
commit 7ddbcf7e87

View file

@ -328,8 +328,8 @@ Move MovePicker::next_move<false>() {
case KILLERS_S1:
move = (cur++)->move;
if ( move != MOVE_NONE
&& pos.pseudo_legal(move)
&& move != ttMove
&& pos.pseudo_legal(move)
&& !pos.capture(move))
return move;
break;