Use Movepick SEE value in search

This halves the calls to the costly pos.see_sign(),
speed up is about 1-1.3%

Non functional change.
This commit is contained in:
Marco Costalba
2016-09-09 08:38:44 +02:00
parent d909d10f33
commit 602d7fbb07
3 changed files with 8 additions and 1 deletions

View File

@@ -958,7 +958,8 @@ moves_loop: // When in check search starts from here
}
}
else if ( depth < 3 * ONE_PLY
&& pos.see_sign(move) < VALUE_ZERO)
&& ( mp.see_sign() < 0
|| (!mp.see_sign() && pos.see_sign(move) < VALUE_ZERO)))
continue;
}