Skip to content
Snippets Groups Projects
Commit af8b8323 authored by Daniel Lindblad's avatar Daniel Lindblad
Browse files

Removed duplicate declaration of the same operators since the

same operators were added in both this MR and MR!1391 to address
the same issue.
parent bd6d5418
No related branches found
No related tags found
No related merge requests found
......@@ -233,8 +233,6 @@ template <typename T> struct avx2Int8
_data = _mm256_set1_epi32(rhs);
}
inline avx2Int8 &operator=(const avx2Int8 &) = default;
// subscript
// subscriptsoperators are convienient but expensive
// should not be used in optimized kernels
......@@ -345,8 +343,6 @@ template <typename T> struct avx2Long4
_data = _mm256_set1_epi64x(rhs);
}
inline avx2Long4 &operator=(const avx2Long4 &) = default;
// subscript
// subscript operators are convienient but expensive
// should not be used in optimized kernels
......@@ -518,9 +514,6 @@ struct avx2Double4
return tmp[i];
}
// unary ops
inline avx2Double4 &operator=(const avx2Double4 &) = default;
inline void operator+=(avx2Double4 rhs)
{
_data = _mm256_add_pd(_data, rhs._data);
......@@ -778,9 +771,6 @@ struct avx2Float8
return tmp[i];
}
// unary ops
inline avx2Float8 &operator=(const avx2Float8 &) = default;
inline void operator+=(avx2Float8 rhs)
{
_data = _mm256_add_ps(_data, rhs._data);
......
......@@ -239,8 +239,6 @@ template <typename T> struct avx512Int16
_data = _mm512_set1_epi32(rhs);
}
inline avx512Int16 &operator=(const avx512Int16 &) = default;
// subscript
// subscript operators are convienient but expensive
// should not be used in optimized kernels
......@@ -356,8 +354,6 @@ template <typename T> struct avx512Long8
_data = _mm512_set1_epi64(rhs);
}
inline avx512Long8 &operator=(const avx512Long8 &) = default;
// subscript
// subscript operators are convienient but expensive
// should not be used in optimized kernels
......@@ -512,9 +508,6 @@ struct avx512Double8
return tmp[i];
}
// unary ops
inline avx512Double8 &operator=(const avx512Double8 &) = default;
inline void operator+=(avx512Double8 rhs)
{
_data = _mm512_add_pd(_data, rhs._data);
......@@ -770,9 +763,6 @@ struct avx512Float16
return tmp[i];
}
// unary ops
inline avx512Float16 &operator=(const avx512Float16 &) = default;
inline void operator+=(avx512Float16 rhs)
{
_data = _mm512_add_ps(_data, rhs._data);
......
......@@ -189,8 +189,6 @@ template <typename T, typename> struct scalarT
return _data;
}
inline scalarT &operator=(const scalarT &) = default;
// unary ops
inline void operator+=(scalarT<T> rhs)
{
......
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