]> git.sesse.net Git - stockfish/commit
Remove castling moves in check generation
authorMarco Costalba <mcostalba@gmail.com>
Sun, 1 Nov 2009 16:19:04 +0000 (17:19 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 1 Nov 2009 16:19:04 +0000 (17:19 +0100)
commit23de3e16f153f91601e0a6a19b793c54a1ba35cd
treef4d8a38ea2501e609c493d72cf7f0ee046d84594
parent8ebe5075ebd39bd0b7f6ecde41fc7fdec03df568
Remove castling moves in check generation

Check generation is used only in qsearch and
only at Depth(0), castling moves that give check
are very rare overall and even almost not exsistent
at Depth(0).

So retire this almost never used code that adds
a small but consistent slow down in the normal path.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/movegen.cpp