X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;h=b9071ea8bab0beb0323e1b597e27097c6ce7a732;hp=ce4f5b8891d8fe107904e668169f85556f44ab64;hb=bc4f3155ae3937d32a3ebaae77ee4f7be355aa60;hpb=b414fc0dfdced41aa14d4d86dd6a94ce3e2094f3 diff --git a/src/bitboard.cpp b/src/bitboard.cpp index ce4f5b88..b9071ea8 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -79,7 +79,7 @@ void print_bitboard(Bitboard b) { { std::cout << "+---+---+---+---+---+---+---+---+" << '\n'; for (File f = FILE_A; f <= FILE_H; f++) - std::cout << "| " << (bit_is_set(b, make_square(f, r)) ? 'X' : ' ') << ' '; + std::cout << "| " << (bit_is_set(b, make_square(f, r)) ? "X " : " "); std::cout << "|\n"; } @@ -332,9 +332,9 @@ namespace { attack[s] = &attTable[offset]; mask[s] = sliding_attacks(s, EmptyBoardBB, delta, excluded); - shift[s] = (CpuIs64Bit ? 64 : 32) - count_1s(mask[s]); + shift[s] = (CpuIs64Bit ? 64 : 32) - count_1s(mask[s]); - maxKey = 1 << count_1s(mask[s]); + maxKey = 1 << count_1s(mask[s]); offset += maxKey; booster = MagicBoosters[CpuIs64Bit][square_rank(s)];