X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=08b0e7ba0fc32288dfcedb551bef82a89b197df1;hp=3cfe3750e609e6b3483f0b79e4d7404c898d5d53;hb=3376c68f4bb83dc9fd874eb9d710dab09609ae54;hpb=1b0888708d670f95a75da49f7890d916b51a58b0 diff --git a/src/pawns.cpp b/src/pawns.cpp index 3cfe3750..08b0e7ba 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -25,6 +25,7 @@ #include #include +#include "bitcount.h" #include "pawns.h" #include "position.h" @@ -329,8 +330,8 @@ PawnInfo *PawnInfoTable::get_pawn_info(const Position &pos) { // Test for candidate passed pawn candidate = !passed && pos.file_is_half_open(them, f) - && ( count_1s_max_15(neighboring_files_bb(f) & (behind_bb(us, r) | rank_bb(r)) & ourPawns) - - count_1s_max_15(neighboring_files_bb(f) & in_front_bb(us, r) & theirPawns) + && ( count_1s_max_15(neighboring_files_bb(f) & (behind_bb(us, r) | rank_bb(r)) & ourPawns) + - count_1s_max_15(neighboring_files_bb(f) & in_front_bb(us, r) & theirPawns) >= 0); // In order to prevent doubled passed pawns from receiving a too big