_mm256_addsub_ps
Classification
AVX_ALL, Arithmetic, CPUID Test: AVX
Header File
Instruction
VADDSUBPS ymm, ymm, ymm
Synopsis
_mm256_addsub_ps(__m256 a, __m256 b);
Description
Alternatively add and subtract packed single-precision (32-bit) floating-point elements in "a" to/from packed elements in "b", and store the results in "dst".
Operation
FOR j := 0 to 7
i := j*32
IF ((j & 1) == 0)
dst[i+31:i] := a[i+31:i] - b[i+31:i]
ELSE
dst[i+31:i] := a[i+31:i] + b[i+31:i]
FI
ENDFOR
dst[MAX:256] := 0