mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00: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>
|
||||
accelerator_inline Grid_simd &operator=(const Grid_simd<typename std::enable_if<is_ComplexF<S>::value, S>::type, Vector_type> &&rhs) {
|
||||
//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;
|
||||
};
|
||||
|
||||
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) {
|
||||
//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;
|
||||
};
|
||||
|
||||
@ -303,14 +303,14 @@ public:
|
||||
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) {
|
||||
//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;
|
||||
};
|
||||
|
||||
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) {
|
||||
//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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user