commit 98a19fcf7871dbf11c5ac55d70545b5c08fa15cd
parent d6d1b4472bb927fabaf0c568f722fc220d23b746
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Tue, 8 Nov 2016 06:24:21 +0300
vec.hpp: optvec<T> for vector with optimal width
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/kfr/base/vec.hpp b/include/kfr/base/vec.hpp
@@ -741,6 +741,9 @@ constexpr vec<T, Nout> partial_mask()
}
}
+template <typename T>
+using optvec = vec<T, platform<T>::vector_capacity / 4>;
+
using f32x1 = vec<f32, 1>;
using f32x2 = vec<f32, 2>;
using f32x3 = vec<f32, 3>;