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);
}
FORCE_INLINE Square pop_lsb(Bitboard* b) {
const Square s = lsb(*b);
- *b &= ~(1ULL << s);
+ *b &= *b - 1;
return s;
}