X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=d187102ff1bf17914dd806c250b85bf8d757049f;hp=59b30a7f009204bb06b9b258a050797d96a362c0;hb=ebe8009affa34708bac1e8b69cf5b925ffe5cc82;hpb=f59323b56a0920676c2589a36356a44fc42c8f40 diff --git a/src/bitboard.h b/src/bitboard.h index 59b30a7f..d187102f 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -50,6 +50,7 @@ extern Bitboard ThisAndAdjacentFilesBB[8]; extern Bitboard InFrontBB[2][8]; extern Bitboard StepAttacksBB[16][64]; extern Bitboard BetweenBB[64][64]; +extern Bitboard DistanceRingsBB[64][8]; extern Bitboard ForwardBB[2][64]; extern Bitboard PassedPawnMask[2][64]; extern Bitboard AttackSpanMask[2][64]; @@ -216,8 +217,7 @@ FORCE_INLINE unsigned magic_index(Square s, Bitboard occ) { template inline Bitboard attacks_bb(Square s, Bitboard occ) { - Bitboard** const Attacks = Pt == ROOK ? RAttacks : BAttacks; - return Attacks[s][magic_index(s, occ)]; + return (Pt == ROOK ? RAttacks : BAttacks)[s][magic_index(s, occ)]; }