X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbitboard.cpp;h=cae7e0cae32e2fedf633af09730b631661517252;hb=1f1ef0897c986ad5e761dd04a223ae9af6048b09;hp=384831adc8f7061f09797cbeff28d2e166eae574;hpb=a49e4fac9839263ef2a3b885a051ec842b1202d9;p=stockfish diff --git a/src/bitboard.cpp b/src/bitboard.cpp index 384831ad..cae7e0ca 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -226,6 +226,7 @@ Bitboard StepAttackBB[16][64]; Bitboard RayBB[64][8]; Bitboard BetweenBB[64][64]; +Bitboard SquaresInFrontMask[2][64]; Bitboard PassedPawnMask[2][64]; Bitboard OutpostMask[2][64]; @@ -427,6 +428,7 @@ namespace { for (Color c = WHITE; c <= BLACK; c++) for (Square s = SQ_A1; s <= SQ_H8; s++) { + SquaresInFrontMask[c][s] = in_front_bb(c, s) & file_bb(s); PassedPawnMask[c][s] = in_front_bb(c, s) & this_and_neighboring_files_bb(s); OutpostMask[c][s] = in_front_bb(c, s) & neighboring_files_bb(s); }