projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b77bae0
)
Remove useless razoring condition
author
Marco Costalba
<mcostalba@gmail.com>
Thu, 29 Sep 2016 13:24:36 +0000 (15:24 +0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Thu, 29 Sep 2016 13:24:36 +0000 (15:24 +0200)
Condition is always true! For any value of the
array index! Even an out of bound array, like
razor_margin[120]!!!!
No functional change.
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
3dc1796
..
1d8139c
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-728,8
+728,7
@@
namespace {
&& ttMove == MOVE_NONE
&& eval + razor_margin[depth / ONE_PLY] <= alpha)
{
- if ( depth <= ONE_PLY
- && eval + razor_margin[3] <= alpha)
+ if (depth <= ONE_PLY)
return qsearch<NonPV, false>(pos, ss, alpha, beta, DEPTH_ZERO);
Value ralpha = alpha - razor_margin[depth / ONE_PLY];