Skip to content
Snippets Groups Projects
Commit 9f689070 authored by Johannes Elmsheuser's avatar Johannes Elmsheuser
Browse files

Merge branch 'CxxUtils_gcc8' into 'master'

ATEAM-801: vec.h compilation issues for gcc8

See merge request atlas/athena!49368
parents 4037c435 d439bf93
No related branches found
No related tags found
No related merge requests found
......@@ -391,14 +391,14 @@ vpermute2(VEC& dst, const VEC& src1, const VEC& src2)
#if !HAVE_VECTOR_SIZE_ATTRIBUTE || WANT_VECTOR_FALLBACK
VEC tmp;
std::array<size_t, N> indices = { Indices... };
for (size_t i = 0; i < N; ++i) {
size_t index = indices[i];
size_t pos{0};
for (auto index: { Indices... }) {
if (index < N) {
tmp[i] = src1[index];
tmp[pos] = src1[index];
} else {
tmp[i] = src2[index - N];
tmp[pos] = src2[index - N];
}
++pos;
}
dst = tmp;
#elif defined(__clang__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment