1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Prefer int to uint8_t when possible

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2010-11-01 13:16:32 +01:00
parent cfca92cd7c
commit 9f626725ae
4 changed files with 7 additions and 7 deletions

View file

@ -430,7 +430,7 @@ install:
-strip $(BINDIR)/$(EXE) -strip $(BINDIR)/$(EXE)
clean: clean:
$(RM) $(EXE) *.o .depend *~ core bench.txt *.gcda $(RM) $(EXE) $(EXE).exe *.o .depend *~ core bench.txt *.gcda
testrun: testrun:
@$(PGOBENCH) @$(PGOBENCH)

View file

@ -51,10 +51,10 @@ namespace {
}; };
CACHE_LINE_ALIGNMENT CACHE_LINE_ALIGNMENT
const uint8_t MainSearchPhaseTable[] = { PH_TT_MOVES, PH_GOOD_CAPTURES, PH_KILLERS, PH_NONCAPTURES, PH_BAD_CAPTURES, PH_STOP}; const int 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 int EvasionsPhaseTable[] = { PH_TT_MOVES, PH_EVASIONS, PH_STOP};
const uint8_t QsearchWithChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_QCHECKS, PH_STOP}; const int QsearchWithChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_QCHECKS, PH_STOP};
const uint8_t QsearchWithoutChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_STOP}; const int QsearchWithoutChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_STOP};
} }

View file

@ -64,7 +64,7 @@ private:
Bitboard pinned; Bitboard pinned;
MoveStack ttMoves[2], killers[2]; MoveStack ttMoves[2], killers[2];
int badCaptureThreshold, phase; int badCaptureThreshold, phase;
const uint8_t* phasePtr; const int* phasePtr;
MoveStack *curMove, *lastMove, *lastGoodNonCapture, *badCaptures; MoveStack *curMove, *lastMove, *lastGoodNonCapture, *badCaptures;
MoveStack moves[MOVES_MAX]; MoveStack moves[MOVES_MAX];
}; };

View file

@ -120,7 +120,7 @@ public:
private: private:
size_t size; size_t size;
TTCluster* entries; TTCluster* entries;
uint8_t generation; int generation;
}; };
extern TranspositionTable TT; extern TranspositionTable TT;