mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Reorder conditions according to their frequency
This should minimize useless tests. No functional change.
This commit is contained in:
parent
203fdc9ac1
commit
92dcbfa658
1 changed files with 3 additions and 3 deletions
|
@ -614,10 +614,10 @@ namespace {
|
|||
|
||||
// Update gain for the parent non-capture move given the static position
|
||||
// evaluation before and after the move.
|
||||
if ( (move = (ss-1)->currentMove) != MOVE_NULL
|
||||
&& (ss-1)->staticEval != VALUE_NONE
|
||||
if ( !pos.captured_piece_type()
|
||||
&& ss->staticEval != VALUE_NONE
|
||||
&& !pos.captured_piece_type()
|
||||
&& (ss-1)->staticEval != VALUE_NONE
|
||||
&& (move = (ss-1)->currentMove) != MOVE_NULL
|
||||
&& type_of(move) == NORMAL)
|
||||
{
|
||||
Square to = to_sq(move);
|
||||
|
|
Loading…
Add table
Reference in a new issue