Retire ThisAndAdjacentFilesBB[]

It is unused. Also renamed attack_span_mask to
pawn_attack_span

No functional change.
This commit is contained in:
Marco Costalba
2013-06-23 10:03:48 +02:00
parent 378bcfe760
commit b2fadf32aa
4 changed files with 12 additions and 25 deletions

View File

@@ -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)
{