Mjolnir Core
Core functionality of the Mjolnir API

◆ insert()

auto insert ( __m128  src,
__m128  dst 
) -> __m128
inlinenoexcept

Insert a single element from src into dst and return the result in a new __m128 register.

The source and the target elements are selected by template parameter indices. Optionally, elements can be set to zero by providing additional boolean template values.

Template Parameters
t_index_srcIndex of the element in src that should be copied
t_index_dstIndex of the element in dst that should receive the copied value
t_set_zeroAn optional parameter pack of boolean values. If the N-th provided value is true, the N-th element of the result register will be set to 0. If it is false, no changes are applied to this element. Note that you can set multiple values to 0. If the boolean value that corresponds to t_index_dst is true, the resulting value is 0, which makes the insertion obsolete.
Parameters
[in]srcSource register
[in]dstTarget register
Returns
A new __m128 register with corresponding values