Function core::arch::x86_64::_mm256_mpsadbw_epu8

1.27.0 · source ·
pub unsafe fn _mm256_mpsadbw_epu8(
    a: __m256i,
    b: __m256i,
    const IMM8: i32
) -> __m256i
Available on (x86 or x86-64) and target feature avx2 and x86-64 only.
Expand description

计算无符号四元组的绝对差之和 (SADs) a 中的 8 位整数与 b 中的 8 位整数相比较,并将 16 位结果存储在 dst 中。 使用来自 b 的一个四元组和来自 a 的八个四元组,对每个 128 位 lane 执行八个 SAD。 从 b 中指定的偏移量开始,从 b 中选择一个四元组。 从 a 中选择的有序 8 位整数开始的 8 个四元组,起始于 imm8 中指定的偏移量。

Intel’s documentation