From 1e9b092cbac1aed8261a7f656a114f5953b6f5c0 Mon Sep 17 00:00:00 2001 From: Terje Date: Fri, 3 Jan 2025 18:10:26 +0100 Subject: [PATCH] Bench: 26100887 --- src/history.h | 5 ----- src/threads.c | 1 - src/threads.h | 1 - 3 files changed, 7 deletions(-) diff --git a/src/history.h b/src/history.h index c4cda740..2173ab60 100644 --- a/src/history.h +++ b/src/history.h @@ -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)]) @@ -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)) @@ -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); } @@ -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); @@ -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)) diff --git a/src/threads.c b/src/threads.c index 65bc064f..ad048798 100644 --- a/src/threads.c +++ b/src/threads.c @@ -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)); diff --git a/src/threads.h b/src/threads.h index ad83c732..f9c86654 100644 --- a/src/threads.h +++ b/src/threads.h @@ -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];