Only initialize element 1 in mirrored arrays.
This commit is contained in:
parent
cf7b64ba67
commit
0a6ad4dcf4
|
@ -14,8 +14,7 @@ struct MirroredArray : public ArrayView<T>
|
||||||
: ArrayView<T>(data), size(size)
|
: ArrayView<T>(data), size(size)
|
||||||
{
|
{
|
||||||
kak_assert(2 * size + 1 <= data.size());
|
kak_assert(2 * size + 1 <= data.size());
|
||||||
for (int i = -size; i <= size; ++i)
|
(*this)[1] = 0;
|
||||||
(*this)[i] = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[[gnu::always_inline]]
|
[[gnu::always_inline]]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user