projects
/
stockfish
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce enum VALUE_ZERO instead of Value(0)
[stockfish]
/
src
/
search.cpp
diff --git
a/src/search.cpp
b/src/search.cpp
index 032ff4034153e1ed8acc939e1fc39a60b5f0795b..59025fba1215d78525890a6e56b44251281bbf0a 100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-996,7
+996,7
@@
namespace {
// Step 2. Check for aborted search and immediate draw
if (AbortSearch || ThreadsMgr.thread_should_stop(threadID))
// Step 2. Check for aborted search and immediate draw
if (AbortSearch || ThreadsMgr.thread_should_stop(threadID))
- return V
alue(0)
;
+ return V
ALUE_ZERO
;
if (pos.is_draw() || ply >= PLY_MAX - 1)
return VALUE_DRAW;
if (pos.is_draw() || ply >= PLY_MAX - 1)
return VALUE_DRAW;
@@
-1493,7
+1493,7
@@
namespace {
{
futilityValue = futilityBase
+ pos.endgame_value_of_piece_on(move_to(move))
{
futilityValue = futilityBase
+ pos.endgame_value_of_piece_on(move_to(move))
- + (move_is_ep(move) ? PawnValueEndgame : V
alue(0)
);
+ + (move_is_ep(move) ? PawnValueEndgame : V
ALUE_ZERO
);
if (futilityValue < alpha)
{
if (futilityValue < alpha)
{
@@
-1884,7
+1884,7
@@
namespace {
if ( captureOrPromotion
&& pos.type_of_piece_on(move_to(m)) != PAWN
&& ( pos.non_pawn_material(WHITE) + pos.non_pawn_material(BLACK)
if ( captureOrPromotion
&& pos.type_of_piece_on(move_to(m)) != PAWN
&& ( pos.non_pawn_material(WHITE) + pos.non_pawn_material(BLACK)
- - pos.midgame_value_of_piece_on(move_to(m)) == V
alue(0)
)
+ - pos.midgame_value_of_piece_on(move_to(m)) == V
ALUE_ZERO
)
&& !move_is_promotion(m)
&& !move_is_ep(m))
{
&& !move_is_promotion(m)
&& !move_is_ep(m))
{