Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector: add index_type alias #285

Merged
merged 1 commit into from
Jul 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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