Skip to content

Commit

Permalink
Simplify accumulator updates
Browse files Browse the repository at this point in the history
Bench 3197798
  • Loading branch information
gab8192 committed Feb 8, 2025
1 parent d66e603 commit 9bb408a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nnue/nnue_feature_transformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ class FeatureTransformer {
return;
StateInfo* oldest = try_find_computed_accumulator<Perspective>(pos);

if ((oldest->*accPtr).computed[Perspective] && oldest != pos.state())
if ((oldest->*accPtr).computed[Perspective])
// Start from the oldest computed accumulator, update all the
// accumulators up to the current position.
update_accumulator_incremental<Perspective>(pos, oldest);
Expand Down

0 comments on commit 9bb408a

Please sign in to comment.