_mm256_sad_epu8 in core::arch::x86 - Rust
Description: Computes the absolute differences of packed unsigned 8-bit integers in `a` and `b`, then horizontally sum each consecutive 8 differences to produce four unsigned 16-bit integers, and pack these unsigned 16-bit integers in the low 16 bits of the 64-bit return value

# Function core::arch::x86::_mm256_sad_epu8

1.27.0 · source ·

    pub unsafe fn _mm256_sad_epu8(a: __m256i, b: __m256i) -> __m256i

Available on (x86 or x86-64) and target feature `avx2` and x86 only.
Expand description

Computes the absolute differences of packed unsigned 8-bit integers in `a` and `b`, then horizontally sum each consecutive 8 differences to produce four unsigned 16-bit integers, and pack these unsigned 16-bit integers in the low 16 bits of the 64-bit return value

Intel’s documentation