Mjolnir Core
Core functionality of the Mjolnir API

◆ swap()

auto swap ( T_RegisterType  src) -> T_RegisterType
inlinenoexcept

Swap two elements of a register and return the result.

Swapping across lane boundaries is supported but more expensive than swapping inside lanes.

Template Parameters
t_idx_0Index of the first element that should be swapped.
t_idx_1Index of the second element that should be swapped.
T_RegisterTypeThe register type
Parameters
[in]srcThe source register
Returns
New register with swapped values