Retire approximateEval field from SplitPoint
It is not used anymore after the futility pruning
rewrite in a66f31f12
.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
sf_2.3.1_base
parent
7824603549
commit
12d8f74242
|
@ -310,8 +310,7 @@ namespace {
|
||||||
bool idle_thread_exists(int master);
|
bool idle_thread_exists(int master);
|
||||||
bool split(const Position& pos, SearchStack* ss, int ply,
|
bool split(const Position& pos, SearchStack* ss, int ply,
|
||||||
Value *alpha, Value *beta, Value *bestValue,
|
Value *alpha, Value *beta, Value *bestValue,
|
||||||
const Value futilityValue, const Value approximateValue,
|
const Value futilityValue, Depth depth, int *moves,
|
||||||
Depth depth, int *moves,
|
|
||||||
MovePicker *mp, int master, bool pvNode);
|
MovePicker *mp, int master, bool pvNode);
|
||||||
void wake_sleeping_threads();
|
void wake_sleeping_threads();
|
||||||
|
|
||||||
|
@ -1269,7 +1268,7 @@ namespace {
|
||||||
&& idle_thread_exists(threadID)
|
&& idle_thread_exists(threadID)
|
||||||
&& !AbortSearch
|
&& !AbortSearch
|
||||||
&& !thread_should_stop(threadID)
|
&& !thread_should_stop(threadID)
|
||||||
&& split(pos, ss, ply, &alpha, &beta, &bestValue, VALUE_NONE, VALUE_NONE,
|
&& split(pos, ss, ply, &alpha, &beta, &bestValue, VALUE_NONE,
|
||||||
depth, &moveCount, &mp, threadID, true))
|
depth, &moveCount, &mp, threadID, true))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1573,7 +1572,7 @@ namespace {
|
||||||
&& idle_thread_exists(threadID)
|
&& idle_thread_exists(threadID)
|
||||||
&& !AbortSearch
|
&& !AbortSearch
|
||||||
&& !thread_should_stop(threadID)
|
&& !thread_should_stop(threadID)
|
||||||
&& split(pos, ss, ply, &beta, &beta, &bestValue, futilityValue, approximateEval,
|
&& split(pos, ss, ply, &beta, &beta, &bestValue, futilityValue,
|
||||||
depth, &moveCount, &mp, threadID, false))
|
depth, &moveCount, &mp, threadID, false))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2891,8 +2890,7 @@ namespace {
|
||||||
|
|
||||||
bool split(const Position& p, SearchStack* sstck, int ply,
|
bool split(const Position& p, SearchStack* sstck, int ply,
|
||||||
Value* alpha, Value* beta, Value* bestValue, const Value futilityValue,
|
Value* alpha, Value* beta, Value* bestValue, const Value futilityValue,
|
||||||
const Value approximateEval, Depth depth, int* moves,
|
Depth depth, int* moves, MovePicker* mp, int master, bool pvNode) {
|
||||||
MovePicker* mp, int master, bool pvNode) {
|
|
||||||
|
|
||||||
assert(p.is_ok());
|
assert(p.is_ok());
|
||||||
assert(sstck != NULL);
|
assert(sstck != NULL);
|
||||||
|
@ -2931,7 +2929,6 @@ namespace {
|
||||||
splitPoint->pvNode = pvNode;
|
splitPoint->pvNode = pvNode;
|
||||||
splitPoint->bestValue = *bestValue;
|
splitPoint->bestValue = *bestValue;
|
||||||
splitPoint->futilityValue = futilityValue;
|
splitPoint->futilityValue = futilityValue;
|
||||||
splitPoint->approximateEval = approximateEval;
|
|
||||||
splitPoint->master = master;
|
splitPoint->master = master;
|
||||||
splitPoint->mp = mp;
|
splitPoint->mp = mp;
|
||||||
splitPoint->moves = *moves;
|
splitPoint->moves = *moves;
|
||||||
|
|
|
@ -51,7 +51,6 @@ struct SplitPoint {
|
||||||
int ply;
|
int ply;
|
||||||
Depth depth;
|
Depth depth;
|
||||||
volatile Value alpha, beta, bestValue, futilityValue;
|
volatile Value alpha, beta, bestValue, futilityValue;
|
||||||
Value approximateEval;
|
|
||||||
bool pvNode;
|
bool pvNode;
|
||||||
int master, slaves[THREAD_MAX];
|
int master, slaves[THREAD_MAX];
|
||||||
Lock lock;
|
Lock lock;
|
||||||
|
|
Loading…
Reference in New Issue