From 4b3508bf4a971e4834c6b3ebaac2a430cdc2e025 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 30 May 2019 22:10:56 -0400 Subject: [PATCH] Rename scalar array in simd::Vector. --- include/simd/vector.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/simd/vector.hpp b/include/simd/vector.hpp index ac66bec9..d056be33 100644 --- a/include/simd/vector.hpp +++ b/include/simd/vector.hpp @@ -50,7 +50,9 @@ template <> struct Vector { union { __m128 v; - float f[4]; + /** Accessing this array of scalars is slow and defeats the purpose of vectorizing. + */ + float s[4]; }; /** Constructs an uninitialized vector. */