_mm_hsubs_epi16 in core::arch::x86 - Rust
Description: Horizontally subtract the adjacent pairs of values contained in 2 packed 128-bit vectors of `[8 x i16]`. Positive differences greater than 7FFFh are saturated to 7FFFh. Negative differences less than 8000h are saturated to 8000h.

## _mm_hsubs_epi16

# Function _mm_hsubs_epi16

1.27.0 · Source

    pub fn _mm_hsubs_epi16(a: __m128i, b: __m128i) -> __m128i

Available on x86 and target feature `ssse3` only.
Expand description

Horizontally subtract the adjacent pairs of values contained in 2 packed 128-bit vectors of `[8 x i16]`. Positive differences greater than 7FFFh are saturated to 7FFFh. Negative differences less than 8000h are saturated to 8000h.

Intel’s documentation