Browse Source

Rename parameter template arguments and aliases in Vector.

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

+ 5
- 5
include/simd/vector.hpp View File

@@ -22,7 +22,7 @@ Usage example:
b *= sin(2 * M_PI * a);
b.store(out);
*/
template <typename T, int N>
template <typename TYPE, int SIZE>
struct Vector;


@@ -30,8 +30,8 @@ struct Vector;
*/
template <>
struct Vector<float, 4> {
typedef float T;
constexpr static int N = 4;
typedef float type;
constexpr static int size = 4;

union {
__m128 v;
@@ -99,8 +99,8 @@ struct Vector<float, 4> {

template <>
struct Vector<int32_t, 4> {
typedef int32_t T;
constexpr static int N = 4;
typedef int32_t type;
constexpr static int size = 4;

union {
__m128i v;


Loading…
Cancel
Save