X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;h=9bd16d2f66a96e60be496258ea550fc6bcb6277a;hp=18b7bb28206d5db0d0a23c026b2caf12558fc466;hb=cb506d3b1657c03738f823a98faed3c6b5216c40;hpb=b3b1d3aaa7e0fa3cd28f8d9d2d5b1dd562b914c3 diff --git a/src/bitboard.cpp b/src/bitboard.cpp index 18b7bb28..9bd16d2f 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -233,6 +233,8 @@ Bitboard BishopPseudoAttacks[64]; Bitboard RookPseudoAttacks[64]; Bitboard QueenPseudoAttacks[64]; +uint8_t BitCount8Bit[256]; + //// //// Local definitions @@ -382,6 +384,9 @@ namespace { in_front_bb(c, s) & this_and_neighboring_files_bb(s); OutpostMask[c][s] = in_front_bb(c, s) & neighboring_files_bb(s); } + + for (Bitboard b = 0ULL; b < 256ULL; b++) + BitCount8Bit[b] = (uint8_t)count_1s(b); }