]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Split calculation of pinners from dc candidates
[stockfish] / src / position.h
index 11d31f8a80d17cb445f9d24e89bfd8f36393c0fd..4f18e67feeb37381c97534ec8abc0d7719167ebd 100644 (file)
@@ -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);