X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=df1c9b506d7c8e79f957bf90e1d9dcfe3f5c0aa4;hp=e6903f1d69cab6d053d999ebeda1e145c3f102e6;hb=c9d7e99de682516c560009b550c41da9ae2008b8;hpb=ccd5ccbcdbfd7bc1521fe194a970ab1c6a4b55fe diff --git a/src/search.cpp b/src/search.cpp index e6903f1d..df1c9b50 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -214,7 +214,7 @@ namespace { inline int futility_move_count(Depth d) { - return d < 16 * ONE_PLY ? FutilityMoveCountArray[d] : MOVES_MAX; + return d < 16 * ONE_PLY ? FutilityMoveCountArray[d] : MAX_MOVES; } // Step 14. Reduced search @@ -418,7 +418,7 @@ void exit_threads() { ThreadsMgr.exit_threads(); } int64_t perft(Position& pos, Depth depth) { - MoveStack mlist[MOVES_MAX]; + MoveStack mlist[MAX_MOVES]; StateInfo st; Move m; int64_t sum = 0; @@ -764,7 +764,7 @@ namespace { assert(PvNode || alpha == beta - 1); assert(pos.thread() >= 0 && pos.thread() < ThreadsMgr.active_threads()); - Move movesSearched[MOVES_MAX]; + Move movesSearched[MAX_MOVES]; int64_t nodes; StateInfo st; const TTEntry *tte; @@ -2490,7 +2490,7 @@ split_point_start: // At split points actual search starts from here void RootMoveList::init(Position& pos, Move searchMoves[]) { - MoveStack mlist[MOVES_MAX]; + MoveStack mlist[MAX_MOVES]; Move* sm; clear();