1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Further simplify Bitboards init()

No functional change.
This commit is contained in:
Marco Costalba 2013-12-07 10:57:05 +01:00
parent 47b89f2e37
commit b71418defa

View file

@ -155,11 +155,8 @@ void Bitboards::init() {
while (k < (2 << 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)
SquareBB[s] = 1ULL << s;
BSFTable[bsf_index(SquareBB[s] = 1ULL << s)] = s;
FileBB[FILE_A] = FileABB;
RankBB[RANK_1] = Rank1BB;