Merge official-stockfish/master
authorFabian Fichter <ianfab@users.noreply.github.com>
Sun, 18 Jul 2021 13:37:21 +0000 (15:37 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sun, 18 Jul 2021 13:37:21 +0000 (15:37 +0200)
No functional change.

1  2 
src/movegen.cpp
src/search.cpp

diff --cc src/movegen.cpp
@@@ -108,14 -52,6 +108,13 @@@ namespace 
      constexpr Direction UpRight  = (Us == WHITE ? NORTH_EAST : SOUTH_WEST);
      constexpr Direction UpLeft   = (Us == WHITE ? NORTH_WEST : SOUTH_EAST);
  
 +    Bitboard TRank8BB = pos.mandatory_pawn_promotion() ? rank_bb(relative_rank(Us, pos.promotion_rank(), pos.max_rank()))
 +                                                       : zone_bb(Us, pos.promotion_rank(), pos.max_rank());
 +    Bitboard TRank7BB = shift<Down>(TRank8BB);
 +    // Define squares a pawn can pass during a double step
 +    Bitboard  TRank3BB =  forward_ranks_bb(Us, relative_rank(Us, pos.double_step_rank_min(), pos.max_rank()))
 +                        & ~shift<Up>(forward_ranks_bb(Us, relative_rank(Us, pos.double_step_rank_max(), pos.max_rank())));
 +
-     const Square ksq = pos.count<KING>(Them) ? pos.square<KING>(Them) : SQ_NONE;
      const Bitboard emptySquares = Type == QUIETS || Type == QUIET_CHECKS ? target : ~pos.pieces();
      const Bitboard enemies      = Type == EVASIONS ? pos.checkers()
                                  : Type == CAPTURES ? target : pos.pieces(Them);
diff --cc src/search.cpp
Simple merge