_mm_minpos_epu16
Classification
SSE_ALL, Miscellaneous, CPUID Test: SSE4.1
Header File
Instruction
PHMINPOSUW xmm, xmm
Synopsis
_mm_minpos_epu16(__m128i a);
Description
Horizontally compute the minimum amongst the packed unsigned 16-bit integers in "a", store the minimum and index in "dst", and zero the remaining bits in "dst".
Operation
index[2:0] := 0
min[15:0] := a[15:0]
FOR j := 0 to 7
i := j*16
IF a[i+15:i] < min[15:0]
index[2:0] := j
min[15:0] := a[i+15:i]
FI
ENDFOR
dst[15:0] := min[15:0]
dst[18:16] := index[2:0]
dst[127:19] := 0