Skip to content

Commit

Permalink
Vector: add index_type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
amyspark authored and bernhardmgruber committed Jul 6, 2021
1 parent 1afaf68 commit e4b581f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Vc/avx/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ template <typename T> class Vector<T, VectorAbi::Avx>
static constexpr size_t Size = sizeof(VectorType) / sizeof(EntryType);
static constexpr size_t MemoryAlignment = alignof(VectorType);
using IndexType = fixed_size_simd<int, Size>;
using index_type = IndexType;
typedef Vector<T, abi> AsArg;
typedef VectorType VectorTypeArg;

Expand Down
1 change: 1 addition & 0 deletions Vc/scalar/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ template <typename T> class Vector<T, VectorAbi::Scalar>
static constexpr size_t Size = 1;
static constexpr size_t MemoryAlignment = alignof(VectorType);
using IndexType = fixed_size_simd<int, 1>;
using index_type = IndexType;

#include "../common/generalinterface.h"

Expand Down
1 change: 1 addition & 0 deletions Vc/sse/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ template <typename T> class Vector<T, VectorAbi::Sse>
using value_type = EntryType;
using VectorEntryType = EntryType;
using IndexType = fixed_size_simd<int, Size>;
using index_type = IndexType;
typedef typename SSE::VectorTraits<T>::MaskType Mask;
using MaskType = Mask;
using mask_type = Mask;
Expand Down

0 comments on commit e4b581f

Please sign in to comment.