mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Micro optimization in extension()
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
0da1d6a846
commit
d99a95df29
1 changed files with 11 additions and 8 deletions
|
@ -2195,6 +2195,8 @@ namespace {
|
||||||
if (mateThreat)
|
if (mateThreat)
|
||||||
result += MateThreatExtension[pvNode];
|
result += MateThreatExtension[pvNode];
|
||||||
|
|
||||||
|
if (pos.type_of_piece_on(move_from(m)) == PAWN)
|
||||||
|
{
|
||||||
if (pos.move_is_pawn_push_to_7th(m))
|
if (pos.move_is_pawn_push_to_7th(m))
|
||||||
{
|
{
|
||||||
result += PawnPushTo7thExtension[pvNode];
|
result += PawnPushTo7thExtension[pvNode];
|
||||||
|
@ -2205,6 +2207,7 @@ namespace {
|
||||||
result += PassedPawnExtension[pvNode];
|
result += PassedPawnExtension[pvNode];
|
||||||
*dangerous = true;
|
*dangerous = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( pos.move_is_capture(m)
|
if ( pos.move_is_capture(m)
|
||||||
&& pos.type_of_piece_on(move_to(m)) != PAWN
|
&& pos.type_of_piece_on(move_to(m)) != PAWN
|
||||||
|
|
Loading…
Add table
Reference in a new issue