Skip to content

Commit

Permalink
Bench: 27491945
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Dec 7, 2024
1 parent 62f8690 commit d9b3254
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/history.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ INLINE void UpdateCorrectionHistory(Thread *thread, Stack *ss, int bestScore, in
ContCorrHistoryUpdate(2, bonus);
ContCorrHistoryUpdate(3, bonus);
ContCorrHistoryUpdate(4, bonus);
ContCorrHistoryUpdate(5, bonus);
}

INLINE int GetQuietHistory(const Thread *thread, Stack *ss, Move move) {
Expand All @@ -143,5 +144,6 @@ INLINE int GetCorrectionHistory(const Thread *thread, const Stack *ss) {
+ *MatCorrEntry() / 25
+ *ContCorrEntry(2) / 50
+ *ContCorrEntry(3) / 44
+ *ContCorrEntry(4) / 47;
+ *ContCorrEntry(4) / 47
+ *ContCorrEntry(5) / 48;
}
2 changes: 1 addition & 1 deletion src/threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void PrepareSearch(Position *pos, Move searchmoves[]) {
t->rootMoveCount = rootMoveCount;
for (Depth d = 0; d <= MAX_PLY; ++d)
(t->ss+SS_OFFSET+d)->ply = d;
for (Depth d = -4; d < 0; ++d)
for (Depth d = -5; d < 0; ++d)
(t->ss+SS_OFFSET+d)->continuation = &t->continuation[0][0][EMPTY][0],
(t->ss+SS_OFFSET+d)->contCorr = &t->contCorrHistory[EMPTY][0];
}
Expand Down

0 comments on commit d9b3254

Please sign in to comment.