summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
69639d7)
closes https://github.com/official-stockfish/Stockfish/pull/4404
No functional change
// by repeatedly applying ->previous from states_to_update[i+1] or states_to_update[i] == nullptr.
// computed_st must be reachable by repeatadly applying ->previous on states_to_update[0], if not nullptr.
template<Color Perspective, size_t N>
// by repeatedly applying ->previous from states_to_update[i+1] or states_to_update[i] == nullptr.
// computed_st must be reachable by repeatadly applying ->previous on states_to_update[0], if not nullptr.
template<Color Perspective, size_t N>
- void update_accumulator_incremetal(const Position& pos, StateInfo* computed_st, StateInfo* states_to_update[N]) const {
+ void update_accumulator_incremental(const Position& pos, StateInfo* computed_st, StateInfo* states_to_update[N]) const {
static_assert(N > 0);
assert(states_to_update[N-1] == nullptr);
static_assert(N > 0);
assert(states_to_update[N-1] == nullptr);
{
// Only update current position accumulator to minimize work.
StateInfo* states_to_update[2] = { pos.state(), nullptr };
{
// Only update current position accumulator to minimize work.
StateInfo* states_to_update[2] = { pos.state(), nullptr };
- update_accumulator_incremetal<Perspective, 2>(pos, oldest_st, states_to_update);
+ update_accumulator_incremental<Perspective, 2>(pos, oldest_st, states_to_update);
StateInfo *states_to_update[3] =
{ next, next == pos.state() ? nullptr : pos.state(), nullptr };
StateInfo *states_to_update[3] =
{ next, next == pos.state() ? nullptr : pos.state(), nullptr };
- update_accumulator_incremetal<Perspective, 3>(pos, oldest_st, states_to_update);
+ update_accumulator_incremental<Perspective, 3>(pos, oldest_st, states_to_update);