_mm_addsub_ps
Classification
SSE_ALL, Arithmetic, CPUID Test: SSE3
Header File
Instruction
ADDSUBPS xmm, xmm
Synopsis
_mm_addsub_ps(__m128 a, __m128 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 3
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