_mm_cmpistrs
Classification
SSE_ALL, String Compare, CPUID Test: SSE4.2
Header File
Instruction
PCMPISTRI xmm, xmm, imm8
Synopsis
_mm_cmpistrs(__m128i a, __m128i b, const int imm8);
Description
Compare packed strings with implicit lengths in "a" and "b" using the control in "imm8", and returns 1 if any character in "a" was null, and 0 otherwise.
[strcmp_note]
Operation
size := (imm8[0] ? 16 : 8) // 8 or 16-bit characters
UpperBound := (128 / size) - 1
aInvalid := 0
FOR i := 0 to UpperBound
m := i*size
IF a[m+size-1:m] == 0
aInvalid := 1
FI
ENDFOR
dst := aInvalid