X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=9584c0ed94184b9ab941fa6773f65fef2f55020d;hp=945fb4e44299dafab044810ac09ae72d4e6c0142;hb=b2fadf32aa57012f2140bc32d5f2433efae3e730;hpb=378bcfe7602593b28ceee5feabbe77b20266a195 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 945fb4e4..9584c0ed 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -530,7 +530,7 @@ Value do_evaluate(const Position& pos, Value& margin) { // Bishop and knight outposts squares if ( (Piece == BISHOP || Piece == KNIGHT) - && !(pos.pieces(Them, PAWN) & attack_span_mask(Us, s))) + && !(pos.pieces(Them, PAWN) & pawn_attack_span(Us, s))) score += evaluate_outposts(pos, ei, s); if ( (Piece == ROOK || Piece == QUEEN) @@ -999,7 +999,7 @@ Value do_evaluate(const Position& pos, Value& margin) { } // Check pawns that can be sacrificed against the blocking pawn - b2 = attack_span_mask(winnerSide, blockSq) & candidates & ~(1ULL << s); + b2 = pawn_attack_span(winnerSide, blockSq) & candidates & ~(1ULL << s); while (b2) // This while-loop could be replaced with LSB/MSB (depending on color) {