mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 02:57:11 +08:00
Use prefix operators wherever possible
No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
bd1c3ed7e3
commit
7f142d6817
@@ -227,7 +227,7 @@ Value Entry::shelter_storm(const Position& pos, Square ksq) {
|
||||
Rank rkUs, rkThem;
|
||||
File kf = std::max(FILE_B, std::min(FILE_G, file_of(ksq)));
|
||||
|
||||
for (int f = kf - 1; f <= kf + 1; f++)
|
||||
for (int f = kf - 1; f <= kf + 1; ++f)
|
||||
{
|
||||
b = ourPawns & FileBB[f];
|
||||
rkUs = b ? relative_rank(Us, backmost_sq(Us, b)) : RANK_1;
|
||||
|
||||
Reference in New Issue
Block a user