mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Remove useless razoring condition
STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 20626 W: 3977 L: 3855 D: 12794 LTC: LLR: 3.10 (-2.94,2.94) [-3.00,1.00] Total: 87334 W: 13675 L: 13648 D: 60011 Retire also the now unused pawn_on_7th() helper. bench: 8248166
This commit is contained in:
@@ -141,7 +141,6 @@ public:
|
|||||||
|
|
||||||
// Piece specific
|
// Piece specific
|
||||||
bool pawn_passed(Color c, Square s) const;
|
bool pawn_passed(Color c, Square s) const;
|
||||||
bool pawn_on_7th(Color c) const;
|
|
||||||
bool opposite_bishops() const;
|
bool opposite_bishops() const;
|
||||||
|
|
||||||
// Doing and undoing moves
|
// Doing and undoing moves
|
||||||
@@ -366,10 +365,6 @@ inline bool Position::opposite_bishops() const {
|
|||||||
&& opposite_colors(pieceList[WHITE][BISHOP][0], pieceList[BLACK][BISHOP][0]);
|
&& opposite_colors(pieceList[WHITE][BISHOP][0], pieceList[BLACK][BISHOP][0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool Position::pawn_on_7th(Color c) const {
|
|
||||||
return pieces(c, PAWN) & rank_bb(relative_rank(c, RANK_7));
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool Position::is_chess960() const {
|
inline bool Position::is_chess960() const {
|
||||||
return chess960;
|
return chess960;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -674,8 +674,7 @@ namespace {
|
|||||||
if ( !PvNode
|
if ( !PvNode
|
||||||
&& depth < 4 * ONE_PLY
|
&& depth < 4 * ONE_PLY
|
||||||
&& eval + razor_margin(depth) <= alpha
|
&& eval + razor_margin(depth) <= alpha
|
||||||
&& ttMove == MOVE_NONE
|
&& ttMove == MOVE_NONE)
|
||||||
&& !pos.pawn_on_7th(pos.side_to_move()))
|
|
||||||
{
|
{
|
||||||
if ( depth <= ONE_PLY
|
if ( depth <= ONE_PLY
|
||||||
&& eval + razor_margin(3 * ONE_PLY) <= alpha)
|
&& eval + razor_margin(3 * ONE_PLY) <= alpha)
|
||||||
|
|||||||
Reference in New Issue
Block a user