Skip to content

Commit

Permalink
Bench: 26100887
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Jan 3, 2025
1 parent 4319935 commit 1e9b092
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/history.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#define NoisyEntry(move) (&thread->captureHistory[piece(move)][toSq(move)][PieceTypeOf(capturing(move))])
#define ContEntry(offset, move) (&(*(ss-offset)->continuation)[piece(move)][toSq(move)])
#define PawnCorrEntry() (&thread->pawnCorrHistory[thread->pos.stm][PawnCorrIndex(&thread->pos)])
#define MatCorrEntry() (&thread->matCorrHistory[thread->pos.stm][MatCorrIndex(&thread->pos)])
#define MinorCorrEntry() (&thread->minorCorrHistory[thread->pos.stm][MinorCorrIndex(&thread->pos)])
#define MajorCorrEntry() (&thread->majorCorrHistory[thread->pos.stm][MajorCorrIndex(&thread->pos)])
#define ContCorrEntry(offset) (&(*(ss-offset)->contCorr)[piece((ss-1)->move)][toSq((ss-1)->move)])
Expand All @@ -42,7 +41,6 @@
#define NoisyHistoryUpdate(move, bonus) (HistoryBonus(NoisyEntry(move), bonus, 16000))
#define ContHistoryUpdate(offset, move, bonus) (HistoryBonus(ContEntry(offset, move), bonus, 21250))
#define PawnCorrHistoryUpdate(bonus) (HistoryBonus(PawnCorrEntry(), bonus, 1662))
#define MatCorrHistoryUpdate(bonus) (HistoryBonus(MatCorrEntry(), bonus, 1077))
#define MinorCorrHistoryUpdate(bonus) (HistoryBonus(MinorCorrEntry(), bonus, 1024))
#define MajorCorrHistoryUpdate(bonus) (HistoryBonus(MajorCorrEntry(), bonus, 1024))
#define ContCorrHistoryUpdate(offset, bonus) (HistoryBonus(ContCorrEntry(offset), bonus, 1220))
Expand All @@ -51,7 +49,6 @@

INLINE int PawnStructure(const Position *pos) { return pos->pawnKey & (PAWN_HISTORY_SIZE - 1); }
INLINE int PawnCorrIndex(const Position *pos) { return pos->pawnKey & (CORRECTION_HISTORY_SIZE - 1); }
INLINE int MatCorrIndex(const Position *pos) { return pos->materialKey & (CORRECTION_HISTORY_SIZE - 1); }
INLINE int MinorCorrIndex(const Position *pos) { return pos->minorKey & (CORRECTION_HISTORY_SIZE - 1); }
INLINE int MajorCorrIndex(const Position *pos) { return pos->majorKey & (CORRECTION_HISTORY_SIZE - 1); }
INLINE int NonPawnCorrIndex(const Position *pos, Color c) { return pos->nonPawnKey[c] & (CORRECTION_HISTORY_SIZE - 1); }
Expand Down Expand Up @@ -127,7 +124,6 @@ INLINE void UpdateHistory(Thread *thread, Stack *ss, Move bestMove, Depth depth,
INLINE void UpdateCorrectionHistory(Thread *thread, Stack *ss, int bestScore, int eval, Depth depth) {
int bonus = CorrectionBonus(bestScore, eval, depth);
PawnCorrHistoryUpdate(bonus);
MatCorrHistoryUpdate(bonus);
MinorCorrHistoryUpdate(bonus);
MajorCorrHistoryUpdate(bonus);
NonPawnCorrHistoryUpdate(bonus, WHITE);
Expand Down Expand Up @@ -158,7 +154,6 @@ INLINE int GetHistory(const Thread *thread, Stack *ss, Move move) {

INLINE int GetCorrectionHistory(const Thread *thread, const Stack *ss) {
int c = 6554 * *PawnCorrEntry()
+ 4520 * *MatCorrEntry()
+ 6800 * *MinorCorrEntry()
+ 3700 * *MajorCorrEntry()
+ 7000 * (*NonPawnCorrEntry(WHITE) + *NonPawnCorrEntry(BLACK))
Expand Down
1 change: 0 additions & 1 deletion src/threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ void ResetThreads() {
memset(Threads[i].captureHistory, 0, sizeof(Threads[i].captureHistory)),
memset(Threads[i].continuation, 0, sizeof(Threads[i].continuation)),
memset(Threads[i].pawnCorrHistory, 0, sizeof(Threads[i].pawnCorrHistory)),
memset(Threads[i].matCorrHistory, 0, sizeof(Threads[i].matCorrHistory)),
memset(Threads[i].minorCorrHistory,0, sizeof(Threads[i].minorCorrHistory)),
memset(Threads[i].majorCorrHistory,0, sizeof(Threads[i].majorCorrHistory)),
memset(Threads[i].contCorrHistory, 0, sizeof(Threads[i].contCorrHistory));
Expand Down
1 change: 0 additions & 1 deletion src/threads.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ typedef struct Thread {
CaptureToHistory captureHistory;
ContinuationHistory continuation[2][2];
CorrectionHistory pawnCorrHistory;
CorrectionHistory matCorrHistory;
CorrectionHistory minorCorrHistory;
CorrectionHistory majorCorrHistory;
CorrectionHistory nonPawnCorrHistory[COLOR_NB];
Expand Down

0 comments on commit 1e9b092

Please sign in to comment.