Home
last modified time | relevance | path

Searched refs:byteset (Results 1 - 14 of 14) sorted by relevance

/third_party/musl/porting/uniproton/kernel/src/string/
H A Dstrcspn.c9 size_t byteset[32/sizeof(size_t)]; in strcspn() local
13 memset(byteset, 0, sizeof byteset); in strcspn()
14 for (; *c && BITOP(byteset, *(unsigned char *)c, |=); c++); in strcspn()
15 for (; *s && !BITOP(byteset, *(unsigned char *)s, &); s++); in strcspn()
H A Dstrspn.c9 size_t byteset[32/sizeof(size_t)] = { 0 }; in strspn() local
17 for (; *c && BITOP(byteset, *(unsigned char *)c, |=); c++); in strspn()
18 for (; *s && BITOP(byteset, *(unsigned char *)s, &); s++); in strspn()
H A Dstrstr.c37 size_t byteset[32 / sizeof(size_t)] = { 0 }; in twoway_strstr() local
42 BITOP(byteset, n[l], |=), shift[n[l]] = l+1; in twoway_strstr()
109 if (BITOP(byteset, h[l-1], &)) { in twoway_strstr()
/third_party/musl/porting/liteos_a/kernel/src/string/
H A Dstrcspn.c9 size_t byteset[32/sizeof(size_t)]; in strcspn() local
13 memset(byteset, 0, sizeof byteset); in strcspn()
14 for (; *c && BITOP(byteset, *(unsigned char *)c, |=); c++); in strcspn()
15 for (; *s && !BITOP(byteset, *(unsigned char *)s, &); s++); in strcspn()
H A Dstrspn.c9 size_t byteset[32/sizeof(size_t)] = { 0 }; in strspn() local
17 for (; *c && BITOP(byteset, *(unsigned char *)c, |=); c++); in strspn()
18 for (; *s && BITOP(byteset, *(unsigned char *)s, &); s++); in strspn()
H A Dstrstr.c37 size_t byteset[32 / sizeof(size_t)] = { 0 }; in twoway_strstr() local
42 BITOP(byteset, n[l], |=), shift[n[l]] = l+1; in twoway_strstr()
109 if (BITOP(byteset, h[l-1], &)) { in twoway_strstr()
/third_party/musl/porting/liteos_m/kernel/src/string/
H A Dstrcspn.c9 size_t byteset[32/sizeof(size_t)]; in strcspn() local
13 memset(byteset, 0, sizeof byteset); in strcspn()
14 for (; *c && BITOP(byteset, *(unsigned char *)c, |=); c++); in strcspn()
15 for (; *s && !BITOP(byteset, *(unsigned char *)s, &); s++); in strcspn()
H A Dstrspn.c9 size_t byteset[32/sizeof(size_t)] = { 0 }; in strspn() local
17 for (; *c && BITOP(byteset, *(unsigned char *)c, |=); c++); in strspn()
18 for (; *s && BITOP(byteset, *(unsigned char *)s, &); s++); in strspn()
H A Dstrstr.c37 size_t byteset[32 / sizeof(size_t)] = { 0 }; in twoway_strstr() local
42 BITOP(byteset, n[l], |=), shift[n[l]] = l+1; in twoway_strstr()
109 if (BITOP(byteset, h[l-1], &)) { in twoway_strstr()
/third_party/musl/src/string/
H A Dstrspn.c9 size_t byteset[32/sizeof(size_t)] = { 0 }; in strspn() local
17 for (; *c && BITOP(byteset, *(unsigned char *)c, |=); c++); in strspn()
18 for (; *s && BITOP(byteset, *(unsigned char *)s, &); s++); in strspn()
H A Dstrstr.c37 size_t byteset[32 / sizeof(size_t)] = { 0 }; in twoway_strstr() local
42 BITOP(byteset, n[l], |=), shift[n[l]] = l+1; in twoway_strstr()
109 if (BITOP(byteset, h[l-1], &)) { in twoway_strstr()
H A Dmemmem.c40 size_t byteset[32 / sizeof(size_t)] = { 0 }; in twoway_memmem() local
45 BITOP(byteset, n[i], |=), shift[n[i]] = i+1; in twoway_memmem()
100 if (BITOP(byteset, h[l-1], &)) { in twoway_memmem()
/third_party/rust/crates/memchr/src/memmem/
H A Dtwoway.rs62 byteset: ApproximateByteSet,
85 let byteset = ApproximateByteSet::new(needle);
95 Forward(TwoWay { byteset, critical_pos, shift })
174 if !self.0.byteset.contains(haystack[pos + last_byte]) { in find_small_imp()
220 if !self.0.byteset.contains(haystack[pos + last_byte]) { in find_large_imp()
252 let byteset = ApproximateByteSet::new(needle);
263 Reverse(TwoWay { byteset, critical_pos, shift })
321 if !self.0.byteset.contains(haystack[pos - nlen]) { in rfind_small_imp()
358 if !self.0.byteset.contains(haystack[pos - nlen]) { in rfind_large_imp()
386 byteset in empty()
[all...]
/third_party/rust/crates/aho-corasick/src/
H A Dprefilter.rs815 byteset: Vec<bool>,
816 /// The number of bytes set to true in `byteset`.
828 byteset: vec![false; 256], in new()
852 if !self.byteset[b] { in build()
900 if !self.byteset[byte as usize] { in add_one_byte()
901 self.byteset[byte as usize] = true; in add_one_byte()

Completed in 7 milliseconds