Browse Source

Rename scalar array in simd::Vector.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
4b3508bf4a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      include/simd/vector.hpp

+ 3
- 1
include/simd/vector.hpp View File

@@ -50,7 +50,9 @@ template <>
struct Vector<float, 4> { struct Vector<float, 4> {
union { union {
__m128 v; __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. */ /** Constructs an uninitialized vector. */


Loading…
Cancel
Save