Mjolnir Core
Core functionality of the Mjolnir API

◆ permute_across_lanes()

auto permute_across_lanes ( T_RegisterType  src) -> T_RegisterType
inlinenoexcept

Shuffle the elements of a vector register across lanes using indices and return the result in a new register.

Template Parameters
t_indicesA set of indices equal to the number of register elements. The N-th index selects the value for the N-th element/lane element. Index values may not exceed the number of register elements. Otherwise a compile-time error is triggered.
T_RegisterTypeThe register type
Parameters
[in]srcThe source register
Returns
New register with shuffled values