X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbitboard.cpp;h=cae7e0cae32e2fedf633af09730b631661517252;hb=c0334c7bac92fe0569dc61d1af63a8cc07e2020f;hp=384831adc8f7061f09797cbeff28d2e166eae574;hpb=87379c2929c1d7f3a35aae4ed1115e98fcde388a;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); }