mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Reorder conditions according to their frequency
This should minimize useless tests. No functional change.
This commit is contained in:
@@ -614,10 +614,10 @@ namespace {
|
|||||||
|
|
||||||
// Update gain for the parent non-capture move given the static position
|
// Update gain for the parent non-capture move given the static position
|
||||||
// evaluation before and after the move.
|
// evaluation before and after the move.
|
||||||
if ( (move = (ss-1)->currentMove) != MOVE_NULL
|
if ( !pos.captured_piece_type()
|
||||||
&& (ss-1)->staticEval != VALUE_NONE
|
|
||||||
&& ss->staticEval != VALUE_NONE
|
&& ss->staticEval != VALUE_NONE
|
||||||
&& !pos.captured_piece_type()
|
&& (ss-1)->staticEval != VALUE_NONE
|
||||||
|
&& (move = (ss-1)->currentMove) != MOVE_NULL
|
||||||
&& type_of(move) == NORMAL)
|
&& type_of(move) == NORMAL)
|
||||||
{
|
{
|
||||||
Square to = to_sq(move);
|
Square to = to_sq(move);
|
||||||
|
|||||||
Reference in New Issue
Block a user