]> git.sesse.net Git - stockfish/commitdiff
Micro-optimze extension()
authorMarco Costalba <mcostalba@gmail.com>
Mon, 24 Aug 2009 16:41:24 +0000 (17:41 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 25 Aug 2009 14:11:05 +0000 (15:11 +0100)
Explicitly write the conditions for pawn to 7th
and passed pawn instead of wrapping in redundant
helpers.

Also retire the now unused move_is_pawn_push_to_7th()
and the never used move_was_passed_pawn_push() and
move_is_deep_pawn_push()

Function extension() is so time critical that this
simple patch speeds up the pgo compile of 0.5% and
it is also more clear what actually happens there.

No functional change.

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

No differences found