mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 15:46:24 +08:00
Avoid resetting pinners[c]
Small optimization. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -721,7 +721,7 @@ void Position::do_move(Move m, StateInfo& newSt) {
|
|||||||
|
|
||||||
// Reset pinned bitboard and its friends
|
// Reset pinned bitboard and its friends
|
||||||
for (Color c = WHITE; c <= BLACK; c++)
|
for (Color c = WHITE; c <= BLACK; c++)
|
||||||
st->pinners[c] = st->pinned[c] = st->dcCandidates[c] = ~EmptyBoardBB;
|
st->pinned[c] = st->dcCandidates[c] = ~EmptyBoardBB;
|
||||||
|
|
||||||
if (move_is_castle(m))
|
if (move_is_castle(m))
|
||||||
do_castle_move(m);
|
do_castle_move(m);
|
||||||
|
|||||||
Reference in New Issue
Block a user