_mm256_hadd_ps in core::arch::x86 - Rust
Description: Horizontal addition of adjacent pairs in the two packed vectors of 8 32-bit floating points `a` and `b`. In the result, sums of elements from `a` are returned in locations of indices 0, 1, 4, 5; while sums of elements from `b` are locations 2, 3, 6, 7.

Skip to main content

## _mm256_hadd_ps

# Function _mm256_hadd_ps

1.27.0 (const: unstable) · Source

    pub fn _mm256_hadd_ps(a: __m256, b: __m256) -> __m256

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

Horizontal addition of adjacent pairs in the two packed vectors of 8 32-bit floating points `a` and `b`. In the result, sums of elements from `a` are returned in locations of indices 0, 1, 4, 5; while sums of elements from `b` are locations 2, 3, 6, 7.

Intel’s documentation