mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Small cleanup of unused code in sp_search
futilityValue is now calculated immediately after staticValue, so remove small bunch of unused code No functional change Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
1062459029
commit
72e1e9b986
@@ -1817,7 +1817,6 @@ namespace {
|
|||||||
&& !isCheck;
|
&& !isCheck;
|
||||||
|
|
||||||
const int FutilityMoveCountMargin = 3 + (1 << (3 * int(sp->depth) / 8));
|
const int FutilityMoveCountMargin = 3 + (1 << (3 * int(sp->depth) / 8));
|
||||||
const int FutilityValueMargin = 112 * bitScanReverse32(int(sp->depth) * int(sp->depth) / 2);
|
|
||||||
|
|
||||||
while ( sp->bestValue < sp->beta
|
while ( sp->bestValue < sp->beta
|
||||||
&& !thread_should_stop(threadID)
|
&& !thread_should_stop(threadID)
|
||||||
@@ -1851,12 +1850,6 @@ namespace {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Value based pruning
|
// Value based pruning
|
||||||
if (sp->futilityValue == VALUE_NONE)
|
|
||||||
{
|
|
||||||
EvalInfo ei;
|
|
||||||
sp->futilityValue = evaluate(pos, ei, threadID) + FutilityValueMargin;
|
|
||||||
}
|
|
||||||
|
|
||||||
Value futilityValueScaled = sp->futilityValue - moveCount * IncrementalFutilityMargin;
|
Value futilityValueScaled = sp->futilityValue - moveCount * IncrementalFutilityMargin;
|
||||||
|
|
||||||
if (futilityValueScaled < sp->beta)
|
if (futilityValueScaled < sp->beta)
|
||||||
|
|||||||
Reference in New Issue
Block a user