X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fnnue%2Fnnue_accumulator.h;h=a357d83526c89ef175e8fc10e6fe1e25b420e4bf;hp=2a354a3c2844a29a7bcec9d9a5ce2a12822eb203;hb=aa75388ec136a8cf83b09da2328c5fefd5a010bd;hpb=84f3e867903f62480c33243dd0ecbffd342796fc diff --git a/src/nnue/nnue_accumulator.h b/src/nnue/nnue_accumulator.h index 2a354a3c..a357d835 100644 --- a/src/nnue/nnue_accumulator.h +++ b/src/nnue/nnue_accumulator.h @@ -25,13 +25,14 @@ namespace 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(32) Accumulator { + struct alignas(kCacheLineSize) Accumulator { std::int16_t accumulation[2][kRefreshTriggers.size()][kTransformedFeatureDimensions]; - Value score; - bool computed_accumulation; - bool computed_score; + AccumulatorState state[2]; }; } // namespace Eval::NNUE