Micro optimize generate_pawn_checks()
authorMarco Costalba <mcostalba@gmail.com>
Fri, 8 May 2009 08:53:45 +0000 (10:53 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 8 May 2009 08:56:59 +0000 (10:56 +0200)
commit5f7d37273caf4256d10c0b92e68c397c398fedd1
treee26e16f481812baa4e3fd374cc75df9b038af7d5
parentbe4ee0729ddc7eddcbb7912143a75769ea20fcd1
Micro optimize generate_pawn_checks()

Use a better condition to find candidate direct check pawns.
In particular consider only pawns in the front ranks of the
enemy king, this greatly reduces pawns candidates bitboard
that now is empty more then 90% of the time so that we
can early skip further tests.

No functional change.

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