_mm_insert_epi16

Microsoft Specific

Inserts the least significant 16 bits of b into the selected 16-bit integer of a

__m128i _mm_insert_epi16 (__m128i a, int b, int imm);
PINSRW

Return Value

The selector imm must be an immediate.

r0 := (imm == 0) ? b : a0;
r1 := (imm == 1) ? b : a1;
...
r7 := (imm == 7) ? b : a7;

Requirements

Header: emmintrin.h

END Microsoft Specific

See Also

Reference

Miscellaneous Operations (Integer SSE2 Intrinsics)