mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 05:07:46 +00:00
Silence a good bunch of Intel warnings
Note that some pawns and material info has been switched to int from int8_t. This is a waste of space but it is not clear if we have a faster or slower code (or nothing changed), some test should be needed. Few warnings still are alive. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-8
@@ -193,7 +193,6 @@ namespace {
|
||||
|
||||
// Iteration counters
|
||||
int Iteration;
|
||||
bool LastIterations;
|
||||
BetaCounterType BetaCounter;
|
||||
|
||||
// Scores and number of times the best move changed for each iteration:
|
||||
@@ -207,7 +206,7 @@ namespace {
|
||||
int SearchStartTime;
|
||||
int MaxNodes, MaxDepth;
|
||||
int MaxSearchTime, AbsoluteMaxSearchTime, ExtraSearchTime;
|
||||
Move BestRootMove, PonderMove, EasyMove;
|
||||
Move EasyMove;
|
||||
int RootMoveNumber;
|
||||
bool InfiniteSearch;
|
||||
bool PonderSearch;
|
||||
@@ -369,8 +368,6 @@ void think(const Position &pos, bool infinite, bool ponder, int side_to_move,
|
||||
// Initialize global search variables
|
||||
Idle = false;
|
||||
SearchStartTime = get_system_time();
|
||||
BestRootMove = MOVE_NONE;
|
||||
PonderMove = MOVE_NONE;
|
||||
EasyMove = MOVE_NONE;
|
||||
for (int i = 0; i < THREAD_MAX; i++)
|
||||
{
|
||||
@@ -661,7 +658,6 @@ namespace {
|
||||
ValueByIteration[0] = Value(0);
|
||||
ValueByIteration[1] = rml.get_move_score(0);
|
||||
Iteration = 1;
|
||||
LastIterations = false;
|
||||
|
||||
EasyMove = rml.scan_for_easy_move();
|
||||
|
||||
@@ -716,9 +712,6 @@ namespace {
|
||||
ExtraSearchTime = BestMoveChangesByIteration[Iteration] * (MaxSearchTime / 2)
|
||||
+ BestMoveChangesByIteration[Iteration-1] * (MaxSearchTime / 3);
|
||||
|
||||
// Try to guess if the current iteration is the last one or the last two
|
||||
LastIterations = (current_search_time() > ((MaxSearchTime + ExtraSearchTime)*58) / 128);
|
||||
|
||||
// Stop search if most of MaxSearchTime is consumed at the end of the
|
||||
// iteration. We probably don't have enough time to search the first
|
||||
// move at the next iteration anyway.
|
||||
|
||||
Reference in New Issue
Block a user