X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=18c783f0836ecd6b0d92157ae731472d5040f6ea;hp=34e2f7eef16d0fdb9df11f043087801f3b33aa3d;hb=ad2a0e356e395038a08324f9ff0afee7fc98b8e9;hpb=d438720a1c8115485ff47eeca3b734cd681d01c4 diff --git a/src/position.h b/src/position.h index 34e2f7ee..18c783f0 100644 --- a/src/position.h +++ b/src/position.h @@ -105,8 +105,7 @@ public: // Checking Bitboard checkers() const; - Bitboard discovered_check_candidates() const; - Bitboard pinned_pieces(Color c) const; + Bitboard blockers_for_king(Color c) const; Bitboard check_squares(PieceType pt) const; // Attacks to/from a given square @@ -296,12 +295,8 @@ inline Bitboard Position::checkers() const { return st->checkersBB; } -inline Bitboard Position::discovered_check_candidates() const { - return st->blockersForKing[~sideToMove] & pieces(sideToMove); -} - -inline Bitboard Position::pinned_pieces(Color c) const { - return st->blockersForKing[c] & pieces(c); +inline Bitboard Position::blockers_for_king(Color c) const { + return st->blockersForKing[c]; } inline Bitboard Position::check_squares(PieceType pt) const {