Skip to content

Commit

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

INLINE int GetQuietHistory(const Thread *thread, Stack *ss, Move move) {
Expand All @@ -149,5 +151,7 @@ INLINE int GetCorrectionHistory(const Thread *thread, const Stack *ss) {
+ *ContCorrEntry(4) / 47
+ *ContCorrEntry(5) / 48
+ *ContCorrEntry(6) / 48
+ *ContCorrEntry(7) / 48;
+ *ContCorrEntry(7) / 48
+ *ContCorrEntry(8) / 48
+ *ContCorrEntry(9) / 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 = -7; d < 0; ++d)
for (Depth d = -9; 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 ca03d2f

Please sign in to comment.