X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;h=3dfa040b8e2b0bd513926fd546a6ea4ba85b8382;hp=474e321c09fff8184330be1f27c79dae7c904d6f;hb=f90f810ac4de5ea2f5582ca05a9354c33971a953;hpb=9c428afb6dd0dcba2aa4e2a367a6b35c6f335be0 diff --git a/src/bitboard.cpp b/src/bitboard.cpp index 474e321c..3dfa040b 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -35,6 +35,7 @@ #include #include "bitboard.h" +#include "bitcount.h" #include "direction.h" @@ -339,7 +340,7 @@ Square pop_1st_bit(Bitboard *b) { #endif -#else +#else // defined(USE_FOLDED_BITSCAN) static const int BitTable[64] = { 0, 1, 2, 7, 3, 13, 8, 19, 4, 25, 14, 28, 9, 34, 20, 40, 5, 17, 26, 38, 15, @@ -460,7 +461,7 @@ namespace { Bitboard index_to_bitboard(int index, Bitboard mask) { - int i, j, bits = count_1s(mask); + int i, j, bits = count_1s(mask); Bitboard result = 0ULL; for(i = 0; i < bits; i++) { j = pop_1st_bit(&mask);