_mm256_blend_epi16
Classification
Header File
Instruction
VPBLENDW ymm, ymm, ymm, imm8
Synopsis
_mm256_blend_epi16(__m256i a, __m256i b, const int imm8);
Description
Blend packed 16-bit integers from "a" and "b" within 128-bit lanes using control mask "imm8", and store the results in "dst".
Operation
FOR j := 0 to 15
i := j*16
IF imm8[j%8]
dst[i+15:i] := b[i+15:i]
ELSE
dst[i+15:i] := a[i+15:i]
FI
ENDFOR
dst[MAX:256] := 0