X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=7ee67e4ca9ef4efae68b87629d6cc8a70eb1993f;hp=a4712559163d132691d65ab072bab0b0ad8f13fb;hb=e9296d694c72c2378b71ad29cfff2f2c7b45bb0c;hpb=fb4b4f772e270033560e429a694376caa03a3f52 diff --git a/src/position.cpp b/src/position.cpp index a4712559..7ee67e4c 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1691,7 +1691,7 @@ bool Position::pos_is_ok(int* failedStep) const { // Is there more than 2 checkers? if (failedStep) (*failedStep)++; - if (debugCheckerCount && count_1s(st->checkersBB) > 2) + if (debugCheckerCount && popcount(st->checkersBB) > 2) return false; // Bitboards OK? @@ -1760,7 +1760,7 @@ bool Position::pos_is_ok(int* failedStep) const { if (debugPieceCounts) for (Color c = WHITE; c <= BLACK; c++) for (PieceType pt = PAWN; pt <= KING; pt++) - if (pieceCount[c][pt] != count_1s(pieces(pt, c))) + if (pieceCount[c][pt] != popcount(pieces(pt, c))) return false; if (failedStep) (*failedStep)++;