_mm256_hadd_pd
Classification
AVX_ALL, Arithmetic, CPUID Test: AVX
Header File
Instruction
VHADDPD ymm, ymm, ymm
Synopsis
_mm256_hadd_pd(__m256d a, __m256d b);
Description
Horizontally add adjacent pairs of double-precision (64-bit) floating-point elements in "a" and "b", and pack the results in "dst".
Operation
dst[63:0] := a[127:64] + a[63:0]
dst[127:64] := b[127:64] + b[63:0]
dst[191:128] := a[255:192] + a[191:128]
dst[255:192] := b[255:192] + b[191:128]
dst[MAX:256] := 0