_mm_sign_pi8
Classification
SSE_ALL, Arithmetic, CPUID Test: SSSE3
Header File
Instruction
PSIGNB mm, mm
Synopsis
_mm_sign_pi8(__m64 a, __m64 b);
Description
Negate packed 8-bit integers in "a" when the corresponding signed 8-bit integer in "b" is negative, and store the results in "dst". Element in "dst" are zeroed out when the corresponding element in "b" is zero.
Operation
FOR j := 0 to 7
i := j*8
IF b[i+7:i] < 0
dst[i+7:i] := -(a[i+7:i])
ELSE IF b[i+7:i] == 0
dst[i+7:i] := 0
ELSE
dst[i+7:i] := a[i+7:i]
FI
ENDFOR