X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=e3331bd440784c1e2bdec3154012c6f03d2a2c9f;hp=b99cc2597ceb7959709b50c1dbfa3514e2479383;hb=f2950ae2064fed7767b738ba569e33ae7eaad0a7;hpb=e304db9d1ecf6a2318708483c90fadecf4fac4ee diff --git a/src/bitboard.h b/src/bitboard.h index b99cc259..e3331bd4 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 stm); } @@ -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; }