Template Function wt::m::select

Function Documentation

template<int imm, Quantity Q, std::size_t W, std::size_t N>
inline auto wt::m::select(const wide_vector<W, N, Q> &a, const wide_vector<W, N, Q> &b) noexcept

This implements the AVX blend op. Selects from a and b using the immediate control mask imm. Each bit of the control mask selects the corresponding component from a or b.