X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbitboard.h;h=90dec8165678811ae71f8efce50e11bbf400a5c6;hb=5a156df719790ddd882a928ddf721f8ba81587b1;hp=b99cc2597ceb7959709b50c1dbfa3514e2479383;hpb=e304db9d1ecf6a2318708483c90fadecf4fac4ee;p=stockfish diff --git a/src/bitboard.h b/src/bitboard.h index b99cc259..90dec816 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -33,7 +33,7 @@ void print(Bitboard b); namespace Bitbases { void init_kpk(); -uint32_t probe_kpk(Square wksq, Square wpsq, Square bksq, Color stm); +bool probe_kpk(Square wksq, Square wpsq, Square bksq, Color us); } @@ -280,7 +280,7 @@ FORCE_INLINE Square msb(Bitboard b) { FORCE_INLINE Square pop_lsb(Bitboard* b) { const Square s = lsb(*b); - *b &= ~(1ULL << s); + *b &= *b - 1; return s; }