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)
commite217407450a65282ecc92f0985ff111b93110516
treebbcfc5904691f21e378b381403ad941aa2483090
parent20788783768ad5317eb1273bf0971f2e994635dd
Micro-optimze extension()

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>
src/position.h
src/search.cpp