28template <simd::simd_concept simd_t>
34template <simd::simd_concept simd_t>
40template <simd::simd_concept simd_t>
46template <simd::simd_concept target_simd_t, simd::simd_concept source_simd_t>
52template <simd::simd_concept target_simd_t, simd::simd_concept source_simd_t>
58template <u
int8_t index, simd::simd_concept simd_t>
64template <u
int8_t index, simd::simd_concept simd_t>
70template <u
int8_t index, simd::simd_concept simd_t>
84template <simd::simd_concept simd_t>
90template <simd::simd_concept simd_t>
96template <simd::simd_concept simd_t>
111 static uint8_t
const bit_rev[] = {0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15,
112 16, 24, 20, 28, 18, 26, 22, 30, 17, 25, 21, 29, 19, 27, 23, 31};
116 for (
int i = 0;
i < 16; ++
i)
119 reinterpret_cast<__m256i const &
>(matrix[2 *
i + 1]));
121 reinterpret_cast<__m256i const &
>(matrix[2 *
i + 1]));
124 for (
int i = 0;
i < 16; ++
i)
129 for (
int i = 0;
i < 16; ++
i)
134 for (
int i = 0;
i < 16; ++
i)
139 for (
int i = 0;
i < 16; ++
i)
146template <simd::simd_concept target_simd_t, simd::simd_concept source_simd_t>
150 if constexpr (simd_traits<source_simd_t>::length == 32)
152 if constexpr (simd_traits<target_simd_t>::length == 16)
154 if constexpr (simd_traits<target_simd_t>::length == 8)
156 if constexpr (simd_traits<target_simd_t>::length == 4)
159 else if constexpr (simd_traits<source_simd_t>::length == 16)
161 if constexpr (simd_traits<target_simd_t>::length == 8)
163 if constexpr (simd_traits<target_simd_t>::length == 4)
168 static_assert(simd_traits<source_simd_t>::length == 8,
"Expected 32 bit scalar type.");
173template <simd::simd_concept target_simd_t, simd::simd_concept source_simd_t>
177 if constexpr (simd_traits<source_simd_t>::length == 32)
179 if constexpr (simd_traits<target_simd_t>::length == 16)
181 if constexpr (simd_traits<target_simd_t>::length == 8)
183 if constexpr (simd_traits<target_simd_t>::length == 4)
186 else if constexpr (simd_traits<source_simd_t>::length == 16)
188 if constexpr (simd_traits<target_simd_t>::length == 8)
190 if constexpr (simd_traits<target_simd_t>::length == 4)
195 static_assert(simd_traits<source_simd_t>::length == 8,
"Expected 32 bit scalar type.");
200template <u
int8_t index, simd::simd_concept simd_t>
203 return reinterpret_cast<simd_t
>(
207template <u
int8_t index, simd::simd_concept simd_t>
210 return reinterpret_cast<simd_t
>(
214template <u
int8_t index, simd::simd_concept simd_t>
217 return reinterpret_cast<simd_t
>(
Provides seqan3::detail::builtin_simd, seqan3::detail::is_builtin_simd and seqan3::simd::simd_traits<...
Provides intrinsics include for builtin simd.
Defines the requirements of a matrix (e.g. score matrices, trace matrices).
Definition matrix_concept.hpp:52
The internal SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
void transpose_matrix_avx2(std::array< simd_t, simd_traits< simd_t >::length > &matrix)
Transposes the given simd vector matrix.
constexpr simd_t extract_half_avx2(simd_t const &src)
Extracts one half of the given simd vector and stores the result in the lower half of the target vect...
constexpr simd_t extract_eighth_avx2(simd_t const &src)
Extracts one eighth of the given simd vector and stores it in the lower eighth of the target vector.
constexpr target_simd_t upcast_signed_avx2(source_simd_t const &src)
Upcasts the given vector into the target vector using signed extension of packed values.
constexpr void store_avx2(void *mem_addr, simd_t const &simd_vec)
Store simd_t size bits of integral data into memory.
constexpr simd_t extract_quarter_avx2(simd_t const &src)
Extracts one quarter of the given simd vector and stores it in the lower quarter of the target vector...
constexpr simd_t load_avx2(void const *mem_addr)
Load simd_t size bits of integral data from memory.
constexpr target_simd_t upcast_unsigned_avx2(source_simd_t const &src)
Upcasts the given vector into the target vector using unsigned extension of packed values.
constexpr auto const & get(configuration< configs_t... > const &config) noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition configuration.hpp:412
Provides seqan3::simd::simd_traits.
seqan3::simd::simd_traits is the trait class that provides uniform interface to the properties of sim...
Definition simd_traits.hpp:38
Provides seqan3::simd::simd_concept.