X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=90dec8165678811ae71f8efce50e11bbf400a5c6;hp=b99cc2597ceb7959709b50c1dbfa3514e2479383;hb=e0dfb0bc34dfd6bdb055a7f5779e7a61e2d76dd6;hpb=e304db9d1ecf6a2318708483c90fadecf4fac4ee 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; }