mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Retire SquaresByColorBB[] and enum SquareColor
Use same_color_squares() instead. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -38,7 +38,6 @@ int BShifts[64];
|
||||
Bitboard SetMaskBB[65];
|
||||
Bitboard ClearMaskBB[65];
|
||||
|
||||
Bitboard SquaresByColorBB[2];
|
||||
Bitboard FileBB[8];
|
||||
Bitboard RankBB[8];
|
||||
Bitboard NeighboringFilesBB[8];
|
||||
@@ -157,9 +156,6 @@ void bitboards_init() {
|
||||
for (Bitboard b = 0; b < 256; b++)
|
||||
BitCount8Bit[b] = (uint8_t)count_1s<CNT32_MAX15>(b);
|
||||
|
||||
SquaresByColorBB[DARK] = 0xAA55AA55AA55AA55ULL;
|
||||
SquaresByColorBB[LIGHT] = ~SquaresByColorBB[DARK];
|
||||
|
||||
for (Square s = SQ_A1; s <= SQ_H8; s++)
|
||||
{
|
||||
SetMaskBB[s] = 1ULL << s;
|
||||
|
||||
Reference in New Issue
Block a user