1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01:00

pred 32/64 for float/double instead of 8 in VLA patch

This commit is contained in:
nmeyer-ur 2020-06-13 14:44:37 +02:00
parent d1210ca12a
commit a25e4b3d0c

View File

@ -288,14 +288,14 @@ public:
template <class S = Scalar_type> template <class S = Scalar_type>
accelerator_inline Grid_simd &operator=(const Grid_simd<typename std::enable_if<is_ComplexF<S>::value, S>::type, Vector_type> &&rhs) { accelerator_inline Grid_simd &operator=(const Grid_simd<typename std::enable_if<is_ComplexF<S>::value, S>::type, Vector_type> &&rhs) {
//v = rhs.v; //v = rhs.v;
svst1(svptrue_b8(), (float*)this, svld1(svptrue_b8(), (float*)&(rhs.v))); svst1(svptrue_b32(), (float*)this, svld1(svptrue_b32(), (float*)&(rhs.v)));
return *this; return *this;
}; };
template <class S = Scalar_type> template <class S = Scalar_type>
accelerator_inline Grid_simd &operator=(const Grid_simd<typename std::enable_if<is_ComplexF<S>::value, S>::type, Vector_type> &rhs) { accelerator_inline Grid_simd &operator=(const Grid_simd<typename std::enable_if<is_ComplexF<S>::value, S>::type, Vector_type> &rhs) {
//v = rhs.v; //v = rhs.v;
svst1(svptrue_b8(), (float*)this, svld1(svptrue_b8(), (float*)&(rhs.v))); svst1(svptrue_b32(), (float*)this, svld1(svptrue_b32(), (float*)&(rhs.v)));
return *this; return *this;
}; };
@ -303,14 +303,14 @@ public:
template <class S = Scalar_type> template <class S = Scalar_type>
accelerator_inline Grid_simd &operator=(const Grid_simd<typename std::enable_if<is_ComplexD<S>::value, S>::type, Vector_type> &&rhs) { accelerator_inline Grid_simd &operator=(const Grid_simd<typename std::enable_if<is_ComplexD<S>::value, S>::type, Vector_type> &&rhs) {
//v = rhs.v; //v = rhs.v;
svst1(svptrue_b8(), (double*)this, svld1(svptrue_b8(), (double*)&(rhs.v))); svst1(svptrue_b64(), (double*)this, svld1(svptrue_b64(), (double*)&(rhs.v)));
return *this; return *this;
}; };
template <class S = Scalar_type> template <class S = Scalar_type>
accelerator_inline Grid_simd &operator=(const Grid_simd<typename std::enable_if<is_ComplexD<S>::value, S>::type, Vector_type> &rhs) { accelerator_inline Grid_simd &operator=(const Grid_simd<typename std::enable_if<is_ComplexD<S>::value, S>::type, Vector_type> &rhs) {
//v = rhs.v; //v = rhs.v;
svst1(svptrue_b8(), (double*)this, svld1(svptrue_b8(), (double*)&(rhs.v))); svst1(svptrue_b64(), (double*)this, svld1(svptrue_b64(), (double*)&(rhs.v)));
return *this; return *this;
}; };