]> git.sesse.net Git - stockfish/commitdiff
Remove confusing optimization
authorReuven Peleg <reuvenpe2005@gmail.com>
Mon, 17 Jun 2013 10:49:11 +0000 (13:49 +0300)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 17 Jun 2013 16:12:15 +0000 (18:12 +0200)
Here we skip the call to pos.attacks_from<ROOK>(s) in the 98%
of cases, testing the first 2 members first. Unfortunatly
code is a bit triky and not clear. So we give up to the
speed optimization in exchange of more code clarity.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found