Function search_implicit_str_for_mask
pub fn search_implicit_str_for_mask<const IMM: i32>(
needle: m128i,
haystack: m128i,
) -> m128i
Available on crate feature
dep_safe_arch
only.Expand description
Search for needle
in `haystack, with implicit string length.
In the constant you need to provide (combine with |
):
- A comparison unit:
STR_CMP_U8
,STR_CMP_U16
,STR_CMP_I8
, orSTR_CMP_I16
. - A comparison op:
STR_CMP_EQ_ANY
,STR_CMP_RANGES
,STR_CMP_EQ_EACH
, orSTR_CMP_EQ_ORDERED
. - The desired out mask style:
STR_CMP_BIT_MASK
orSTR_CMP_UNIT_MASK
.
The first 0 unit is a null terminator for the string. If the string has no 0 units then the string ends at the end of the register.
- Intrinsic:
_mm_cmpistrm
- Assembly:
pcmpistrm xmm, xmm, imm8