mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Further simplify Bitboards init()
No functional change.
This commit is contained in:
@@ -155,11 +155,8 @@ void Bitboards::init() {
|
|||||||
while (k < (2 << i))
|
while (k < (2 << i))
|
||||||
MS1BTable[k++] = i;
|
MS1BTable[k++] = i;
|
||||||
|
|
||||||
for (int i = 0; i < 64; ++i)
|
|
||||||
BSFTable[bsf_index(1ULL << i)] = Square(i);
|
|
||||||
|
|
||||||
for (Square s = SQ_A1; s <= SQ_H8; ++s)
|
for (Square s = SQ_A1; s <= SQ_H8; ++s)
|
||||||
SquareBB[s] = 1ULL << s;
|
BSFTable[bsf_index(SquareBB[s] = 1ULL << s)] = s;
|
||||||
|
|
||||||
FileBB[FILE_A] = FileABB;
|
FileBB[FILE_A] = FileABB;
|
||||||
RankBB[RANK_1] = Rank1BB;
|
RankBB[RANK_1] = Rank1BB;
|
||||||
|
|||||||
Reference in New Issue
Block a user