| @@ -22,7 +22,7 @@ Usage example: | |||||
| b *= sin(2 * M_PI * a); | b *= sin(2 * M_PI * a); | ||||
| b.store(out); | b.store(out); | ||||
| */ | */ | ||||
| template <typename T, int N> | |||||
| template <typename TYPE, int SIZE> | |||||
| struct Vector; | struct Vector; | ||||
| @@ -30,8 +30,8 @@ struct Vector; | |||||
| */ | */ | ||||
| template <> | template <> | ||||
| struct Vector<float, 4> { | struct Vector<float, 4> { | ||||
| typedef float T; | |||||
| constexpr static int N = 4; | |||||
| typedef float type; | |||||
| constexpr static int size = 4; | |||||
| union { | union { | ||||
| __m128 v; | __m128 v; | ||||
| @@ -99,8 +99,8 @@ struct Vector<float, 4> { | |||||
| template <> | template <> | ||||
| struct Vector<int32_t, 4> { | struct Vector<int32_t, 4> { | ||||
| typedef int32_t T; | |||||
| constexpr static int N = 4; | |||||
| typedef int32_t type; | |||||
| constexpr static int size = 4; | |||||
| union { | union { | ||||
| __m128i v; | __m128i v; | ||||