diff --git a/include/simd/vector.hpp b/include/simd/vector.hpp index d2b47a84..38c6dab5 100644 --- a/include/simd/vector.hpp +++ b/include/simd/vector.hpp @@ -30,6 +30,9 @@ struct Vector; */ template <> struct Vector { + typedef float T; + constexpr static int N = 4; + union { __m128 v; /** Accessing this array of scalars is slow and defeats the purpose of vectorizing. @@ -96,6 +99,9 @@ struct Vector { template <> struct Vector { + typedef int32_t T; + constexpr static int N = 4; + union { __m128i v; int32_t s[4];