From: Marco Costalba Date: Mon, 1 Nov 2010 12:16:32 +0000 (+0100) Subject: Prefer int to uint8_t when possible X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=9f626725aeb770a38be093a9a47a461053cf7008 Prefer int to uint8_t when possible No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/Makefile b/src/Makefile index e8d882aa..4433fad7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -430,7 +430,7 @@ install: -strip $(BINDIR)/$(EXE) clean: - $(RM) $(EXE) *.o .depend *~ core bench.txt *.gcda + $(RM) $(EXE) $(EXE).exe *.o .depend *~ core bench.txt *.gcda testrun: @$(PGOBENCH) diff --git a/src/movepick.cpp b/src/movepick.cpp index 2e8eb665..264d941f 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -51,10 +51,10 @@ namespace { }; CACHE_LINE_ALIGNMENT - const uint8_t MainSearchPhaseTable[] = { PH_TT_MOVES, PH_GOOD_CAPTURES, PH_KILLERS, PH_NONCAPTURES, PH_BAD_CAPTURES, PH_STOP}; - const uint8_t EvasionsPhaseTable[] = { PH_TT_MOVES, PH_EVASIONS, PH_STOP}; - const uint8_t QsearchWithChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_QCHECKS, PH_STOP}; - const uint8_t QsearchWithoutChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_STOP}; + const int MainSearchPhaseTable[] = { PH_TT_MOVES, PH_GOOD_CAPTURES, PH_KILLERS, PH_NONCAPTURES, PH_BAD_CAPTURES, PH_STOP}; + const int EvasionsPhaseTable[] = { PH_TT_MOVES, PH_EVASIONS, PH_STOP}; + const int QsearchWithChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_QCHECKS, PH_STOP}; + const int QsearchWithoutChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_STOP}; } diff --git a/src/movepick.h b/src/movepick.h index c71ff1a9..c656deaf 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -64,7 +64,7 @@ private: Bitboard pinned; MoveStack ttMoves[2], killers[2]; int badCaptureThreshold, phase; - const uint8_t* phasePtr; + const int* phasePtr; MoveStack *curMove, *lastMove, *lastGoodNonCapture, *badCaptures; MoveStack moves[MOVES_MAX]; }; diff --git a/src/tt.h b/src/tt.h index ad362de3..ff1cb910 100644 --- a/src/tt.h +++ b/src/tt.h @@ -120,7 +120,7 @@ public: private: size_t size; TTCluster* entries; - uint8_t generation; + int generation; }; extern TranspositionTable TT;