mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00:00
Micro optimization in extension()
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+11
-8
@@ -2195,15 +2195,18 @@ namespace {
|
|||||||
if (mateThreat)
|
if (mateThreat)
|
||||||
result += MateThreatExtension[pvNode];
|
result += MateThreatExtension[pvNode];
|
||||||
|
|
||||||
if (pos.move_is_pawn_push_to_7th(m))
|
if (pos.type_of_piece_on(move_from(m)) == PAWN)
|
||||||
{
|
{
|
||||||
result += PawnPushTo7thExtension[pvNode];
|
if (pos.move_is_pawn_push_to_7th(m))
|
||||||
*dangerous = true;
|
{
|
||||||
}
|
result += PawnPushTo7thExtension[pvNode];
|
||||||
if (pos.move_is_passed_pawn_push(m))
|
*dangerous = true;
|
||||||
{
|
}
|
||||||
result += PassedPawnExtension[pvNode];
|
if (pos.move_is_passed_pawn_push(m))
|
||||||
*dangerous = true;
|
{
|
||||||
|
result += PassedPawnExtension[pvNode];
|
||||||
|
*dangerous = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( pos.move_is_capture(m)
|
if ( pos.move_is_capture(m)
|
||||||
|
|||||||
Reference in New Issue
Block a user