X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=4bc8df597e8e02e1af5cf309b1f2b82d68c1bd7a;hp=26f457c54793b49299dda43c13ac75888de9bef6;hb=630b3b2482d74486f3abf438f58bc502639b6073;hpb=6008f6538e9c3912c88e89d77ef3e3d3351a6e55 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