X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=4bc8df597e8e02e1af5cf309b1f2b82d68c1bd7a;hp=26f457c54793b49299dda43c13ac75888de9bef6;hb=55bd27b8f08a151128d7065fa2819aa3e9605299;hpb=e6d8e7415220a11c06b9a707fde6f5c7dd27d34b diff --git a/src/position.cpp b/src/position.cpp index 26f457c5..4bc8df59 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -102,11 +102,13 @@ void init() { } // namespace Zobrist +namespace { + /// next_attacker() is an helper function used by see() to locate the least /// valuable attacker for the side to move, remove the attacker we just found /// from the 'occupied' bitboard and scan for new X-ray attacks behind it. -template static FORCE_INLINE +template FORCE_INLINE PieceType next_attacker(const Bitboard* bb, const Square& to, const Bitboard& stmAttackers, Bitboard& occupied, Bitboard& attackers) { @@ -131,6 +133,8 @@ PieceType next_attacker(const Bitboard*, const Square&, const Bitboard&, B return KING; // No need to update bitboards, it is the last cycle } +} // namespace + /// CheckInfo c'tor