mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
switch to double/float instead of float64_t/float32_t in VLA patch
This commit is contained in:
parent
36ea0e222a
commit
d1210ca12a
@ -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(), (float32_t*)this, svld1(svptrue_b8(), (float32_t*)&(rhs.v)));
|
svst1(svptrue_b8(), (float*)this, svld1(svptrue_b8(), (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(), (float32_t*)this, svld1(svptrue_b8(), (float32_t*)&(rhs.v)));
|
svst1(svptrue_b8(), (float*)this, svld1(svptrue_b8(), (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(), (float64_t*)this, svld1(svptrue_b8(), (float64_t*)&(rhs.v)));
|
svst1(svptrue_b8(), (double*)this, svld1(svptrue_b8(), (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(), (float64_t*)this, svld1(svptrue_b8(), (float64_t*)&(rhs.v)));
|
svst1(svptrue_b8(), (double*)this, svld1(svptrue_b8(), (double*)&(rhs.v)));
|
||||||
return *this;
|
return *this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user