mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Split calculation of pinners from dc candidates
This let us to calculate only pinners when we now that dc candidates are not possible. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+7
-1
@@ -288,6 +288,12 @@ public:
|
||||
static void init_piece_square_tables();
|
||||
|
||||
private:
|
||||
|
||||
enum {
|
||||
Pinned = 1,
|
||||
DcCandidates = 2
|
||||
};
|
||||
|
||||
// Initialization helper functions (used while setting up a position)
|
||||
void clear();
|
||||
void put_piece(Piece p, Square s);
|
||||
@@ -303,7 +309,7 @@ private:
|
||||
void undo_promotion_move(Move m);
|
||||
void undo_ep_move(Move m);
|
||||
void find_checkers();
|
||||
void find_hidden_checks(Color us);
|
||||
void find_hidden_checks(Color us, unsigned int types);
|
||||
void find_hidden_checks();
|
||||
void update_hidden_checks(Square from, Square to);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user