]> git.sesse.net Git - stockfish/commitdiff
Micro optimize generate_piece_checks()
authorMarco Costalba <mcostalba@gmail.com>
Sat, 18 Apr 2009 15:21:44 +0000 (16:21 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 18 Apr 2009 15:28:12 +0000 (16:28 +0100)
Avoid calculating piece attacks if there aren't
available check sqaures for the given piece.

About 15% of cases. Not a biggie but still something
especially in the middle game where king is well covered
inside his castle.

No functional change.

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

No differences found