Template Function wt::m::permute2f¶
Defined in File math.hpp
Function Documentation¶
-
template<int imm, Quantity Q, std::size_t N>
inline auto wt::m::permute2f(const wide_vector<8, N, Q> &a, const wide_vector<8, N, Q> &b) noexcept¶ This implements an op similar to AVX’s
permute2f128(for 256bit single-precision input). Shuffles lower and upper halfs of the wide vector using control maskimm. The value of lower/upper 4-bits ofimmselect the source for the lower/upper half of the return value:imm==0: lower half of aimm==1: upper half of aimm==2: lower half of bimm==3: upper half of bimm==8: 0 Only supported for 8-wide wide vectors.