mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Retire ThisAndAdjacentFilesBB[]
It is unused. Also renamed attack_span_mask to pawn_attack_span No functional change.
This commit is contained in:
@@ -530,7 +530,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
||||
|
||||
// Bishop and knight outposts squares
|
||||
if ( (Piece == BISHOP || Piece == KNIGHT)
|
||||
&& !(pos.pieces(Them, PAWN) & attack_span_mask(Us, s)))
|
||||
&& !(pos.pieces(Them, PAWN) & pawn_attack_span(Us, s)))
|
||||
score += evaluate_outposts<Piece, Us>(pos, ei, s);
|
||||
|
||||
if ( (Piece == ROOK || Piece == QUEEN)
|
||||
@@ -999,7 +999,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
||||
}
|
||||
|
||||
// Check pawns that can be sacrificed against the blocking pawn
|
||||
b2 = attack_span_mask(winnerSide, blockSq) & candidates & ~(1ULL << s);
|
||||
b2 = pawn_attack_span(winnerSide, blockSq) & candidates & ~(1ULL << s);
|
||||
|
||||
while (b2) // This while-loop could be replaced with LSB/MSB (depending on color)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user