From 4fa23352582af471e5e88c5fcf728851b56c798b Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sun, 18 Apr 2021 22:31:18 -0400 Subject: [PATCH] Add missing constructors for fallback __simd_storage --- include/athena/simd/parallelism_v2_simd.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/athena/simd/parallelism_v2_simd.hpp b/include/athena/simd/parallelism_v2_simd.hpp index 3700e56..824a0d6 100644 --- a/include/athena/simd/parallelism_v2_simd.hpp +++ b/include/athena/simd/parallelism_v2_simd.hpp @@ -1518,6 +1518,10 @@ public: const __simd_storage<_Up, __simd_abi<_StorageKind::_Array, __Unum_element>>& other) { std::copy(other.__native().begin(), other.__native().end(), __storage_.begin()); } + template = 0> + constexpr __simd_storage(_T2... values) : __storage_{values...} {} + template = 0> + constexpr __simd_storage(_Tp __rv) : __storage_{__rv, __rv, __rv, __rv} {} constexpr const storage_type& __native() const { return __storage_; } };