X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fpawns.cpp;h=6072745b6e7f6f1b06653d2094d89ee72e2d4f27;hb=66818f2e85732644708e23b3f2c2e544abfbc3b0;hp=a9fc92b25b937b51ca429764a3d30660049db143;hpb=79c97625a42c131708af953839900aff31102454;p=stockfish diff --git a/src/pawns.cpp b/src/pawns.cpp index a9fc92b2..6072745b 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -96,7 +96,7 @@ namespace { // Flag the pawn opposed = theirPawns & forward_file_bb(Us, s); - stoppers = theirPawns & passed_pawn_mask(Us, s); + stoppers = theirPawns & passed_pawn_span(Us, s); lever = theirPawns & PawnAttacks[Us][s]; leverPush = theirPawns & PawnAttacks[Us][s + Up]; doubled = ourPawns & (s - Up); @@ -115,7 +115,7 @@ namespace { // not attacked more times than defended. if ( !(stoppers ^ lever ^ leverPush) && popcount(support) >= popcount(lever) - 1 - && popcount(phalanx) >= popcount(leverPush)) + && popcount(phalanx) >= popcount(leverPush)) e->passedPawns[Us] |= s; else if ( stoppers == SquareBB[s + Up]