_mm_insert_epi16
Classification
Header File
Instruction
PINSRW xmm, r32, imm8
Synopsis
_mm_insert_epi16(__m128i a, int i, int imm8);
Description
Copy "a" to "dst", and insert the 16-bit integer "i" into "dst" at the location specified by "imm8".
Operation
dst[127:0] := a[127:0]
sel := imm8[2:0]*16
dst[sel+15:sel] := i[15:0]