_mm_blend_epi16
Classification
SSE_ALL, Swizzle, CPUID Test: SSE4.1
Header File
Instruction
PBLENDW xmm, xmm, imm8
Synopsis
_mm_blend_epi16(__m128i a, __m128i b, const int imm8);
Description
Blend packed 16-bit integers from "a" and "b" using control mask "imm8", and store the results in "dst".
Operation
FOR j := 0 to 7
i := j*16
IF imm8[j]
dst[i+15:i] := b[i+15:i]
ELSE
dst[i+15:i] := a[i+15:i]
FI
ENDFOR