pub fn multi_packed_sum_abs_diff_u8_m256i<const IMM: i32>(
    a: m256i,
    b: m256i
) -> m256i
Available with target feature avx2 only.
Expand description

Computes eight u16 “sum of absolute difference” values according to the bytes selected.

  • This essentially works like two multi_packed_sum_abs_diff_u8_m128i uses happening at once, the “low” portion works on the lower 128 bits, and the “high” portion works on the upper 128 bits.
let a = m256i::from([5_u8; 32]);
let b = m256i::from([7_u8; 32]);
//
let c: [u16; 16] = multi_packed_sum_abs_diff_u8_m256i::<0b101000>(a, b).into();
assert_eq!(c, [8_u16; 16]);