Mjolnir Core
Core functionality of the Mjolnir API

◆ element_sum_first_n()

auto element_sum_first_n ( T_RegisterType  src) -> ElementType<T_RegisterType>
inlinenoexcept

Return the sum of the first t_num_elements elements from src.

Template Parameters
t_num_elementsNumber of elements that should be summed up.
T_RegisterTypeThe register type
Parameters
[in]srcThe source register
Returns
Sum of the first t_num_elements elements from src