mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-10-30 19:44:32 +00:00 
			
		
		
		
	pred 32/64 for float/double instead of 8 in VLA patch
This commit is contained in:
		| @@ -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; | ||||||
|     }; |     }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user