_mm256_hsub_pd
Classification
AVX_ALL, Arithmetic, CPUID Test: AVX
Header File
immintrin.h
Instruction
VHSUBPD ymm, ymm, ymm
Synopsis
 _mm256_hsub_pd(__m256d a, __m256d b);
Description
Horizontally subtract 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[63:0] - a[127:64]
dst[127:64] := b[63:0] - b[127:64]
dst[191:128] := a[191:128] - a[255:192]
dst[255:192] := b[191:128] - b[255:192]
dst[MAX:256] := 0