]> git.sesse.net Git - stockfish/blobdiff - src/nnue/nnue_accumulator.h
Reduce the number of accumulator states
[stockfish] / src / nnue / nnue_accumulator.h
index e24902c4c685123def340817584d042b2858d88e..d41ecf95b171f365546c25915a114b6296af1292 100644 (file)
 
 namespace Stockfish::Eval::NNUE {
 
-  // The accumulator of a StateInfo without parent is set to the INIT state
-  enum AccumulatorState { EMPTY, COMPUTED, INIT };
-
   // Class that holds the result of affine transformation of input features
   struct alignas(CacheLineSize) Accumulator {
     std::int16_t accumulation[2][TransformedFeatureDimensions];
     std::int32_t psqtAccumulation[2][PSQTBuckets];
-    AccumulatorState state[2];
+    bool computed[2];
   };
 
 }  // namespace Stockfish::Eval::NNUE