_mm_cmpistrz
Classification
SSE_ALL, String Compare, CPUID Test: SSE4.2
Header File
Instruction
PCMPISTRI xmm, xmm, imm8
Synopsis
_mm_cmpistrz(__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 "b" was null, and 0 otherwise.
[strcmp_note]
Operation
size := (imm8[0] ? 16 : 8) // 8 or 16-bit characters
UpperBound := (128 / size) - 1
bInvalid := 0
FOR j := 0 to UpperBound
n := j*size
IF b[n+size-1:n] == 0
bInvalid := 1
FI
ENDFOR
dst := bInvalid