mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Remove step in update_accumulator_refresh_cache
Passed simplification STC https://tests.stockfishchess.org/tests/live_elo/69c9c050a54395a76133504c LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 304544 W: 78502 L: 78574 D: 147468 Ptnml(0-2): 906, 33590, 83358, 33506, 912 closes https://github.com/official-stockfish/Stockfish/pull/6697 No functional change
This commit is contained in:
@@ -746,20 +746,7 @@ void update_accumulator_refresh_cache(Color pers
|
||||
for (IndexType k = 0; k < Tiling::NumRegs; ++k)
|
||||
acc[k] = entryTile[k];
|
||||
|
||||
int i = 0;
|
||||
for (; i < std::min(removed.ssize(), added.ssize()); ++i)
|
||||
{
|
||||
size_t indexR = removed[i];
|
||||
const size_t offsetR = Dimensions * indexR;
|
||||
auto* columnR = reinterpret_cast<const vec_t*>(&weights[offsetR]);
|
||||
size_t indexA = added[i];
|
||||
const size_t offsetA = Dimensions * indexA;
|
||||
auto* columnA = reinterpret_cast<const vec_t*>(&weights[offsetA]);
|
||||
|
||||
for (IndexType k = 0; k < Tiling::NumRegs; ++k)
|
||||
acc[k] = fused<Vec16Wrapper, Add, Sub>(acc[k], columnA[k], columnR[k]);
|
||||
}
|
||||
for (; i < removed.ssize(); ++i)
|
||||
for (int i = 0; i < removed.ssize(); ++i)
|
||||
{
|
||||
size_t index = removed[i];
|
||||
const size_t offset = Dimensions * index;
|
||||
@@ -768,7 +755,7 @@ void update_accumulator_refresh_cache(Color pers
|
||||
for (IndexType k = 0; k < Tiling::NumRegs; ++k)
|
||||
acc[k] = vec_sub_16(acc[k], column[k]);
|
||||
}
|
||||
for (; i < added.ssize(); ++i)
|
||||
for (int i = 0; i < added.ssize(); ++i)
|
||||
{
|
||||
size_t index = added[i];
|
||||
const size_t offset = Dimensions * index;
|
||||
|
||||
Reference in New Issue
Block a user