Mjolnir Core
Core functionality of the Mjolnir API

◆ shuffle_lanes()

auto shuffle_lanes ( T_RegisterType  src_0,
T_RegisterType  src_1 
) -> T_RegisterType
inlinenoexcept

Create a new AVX register by combining arbitrary lanes from two source registers.

Template Parameters
t_src_0Set to 0 to select src_0 as source for the lower lane values of the result register and to 1 for src_1
t_lane_0Set to 0 to copy the lower lane of the selected source register to the lower lane of the result register. Use 1 to copy the upper lane
t_src_1Set to 0 to select src_0 as source for the upper lane values of the result register and to 1 for src_1
t_lane_1Set to 0 to copy the lower lane of the selected source register to the upper lane of the result register. Use 1 to copy the upper lane
T_RegisterTypeThe register type
Parameters
[in]src_0First source register
[in]src_1Second source register
Returns
New register with an arbitrary combination of the two source registers lanes