mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 10:36:26 +08:00
Remove backmost_sq (#2190)
This is a non-functional simplification. backmost_sq and frontmost_sq are redundant. It seems quite clear to always use frontmost_sq and use the correct color. Non functional change.
This commit is contained in:
committed by
Marco Costalba
parent
f9518de974
commit
8cfe27b765
@@ -376,10 +376,7 @@ inline Square pop_lsb(Bitboard* b) {
|
||||
}
|
||||
|
||||
|
||||
/// frontmost_sq() and backmost_sq() return the most/least advanced square in
|
||||
/// the given bitboard relative to the given color.
|
||||
|
||||
/// frontmost_sq() returns the most advanced square for the given color
|
||||
inline Square frontmost_sq(Color c, Bitboard b) { return c == WHITE ? msb(b) : lsb(b); }
|
||||
inline Square backmost_sq(Color c, Bitboard b) { return c == WHITE ? lsb(b) : msb(b); }
|
||||
|
||||
#endif // #ifndef BITBOARD_H_INCLUDED
|
||||
|
||||
Reference in New Issue
Block a user