mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Simplify Singular Extension condition
Avoid defining a singly used variable, removes one condition. passed STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 53489 W: 10814 L: 10752 D: 31923 http://tests.stockfishchess.org/tests/view/5ac08a8d0ebc590e9457cd94 Closes https://github.com/official-stockfish/Stockfish/pull/1530 No functional change.
This commit is contained in:
committed by
Stéphane Nicolet
parent
e408fd7b10
commit
0cfb653eec
@@ -257,10 +257,10 @@ enum Rank : int {
|
||||
};
|
||||
|
||||
|
||||
/// Score enum stores a middlegame and an endgame value in a single integer
|
||||
/// (enum). The least significant 16 bits are used to store the endgame value
|
||||
/// and the upper 16 bits are used to store the middlegame value. Take some
|
||||
/// care to avoid left-shifting a signed int to avoid undefined behavior.
|
||||
/// Score enum stores a middlegame and an endgame value in a single integer (enum).
|
||||
/// The least significant 16 bits are used to store the middlegame value and the
|
||||
/// upper 16 bits are used to store the endgame value. We have to take care to
|
||||
/// avoid left-shifting a signed int to avoid undefined behavior.
|
||||
enum Score : int { SCORE_ZERO };
|
||||
|
||||
constexpr Score make_score(int mg, int eg) {
|
||||
|
||||
Reference in New Issue
Block a user