Home
last modified time | relevance | path

Searched refs:rare1i (Results 1 – 5 of 5) sorted by relevance

/third_party/rust/crates/memchr/src/memmem/
Drarebytes.rs19 rare1i: u8, field
41 pub(crate) fn new(rare1i: u8, rare2i: u8) -> RareNeedleBytes { in new()
42 RareNeedleBytes { rare1i, rare2i } in new()
59 return RareNeedleBytes { rare1i: 0, rare2i: 0 }; in forward()
63 let (mut rare1, mut rare1i) = (needle[0], 0); in forward()
67 core::mem::swap(&mut rare1i, &mut rare2i); in forward()
72 rare2i = rare1i; in forward()
74 rare1i = i as u8; in forward()
84 assert_ne!(rare1i, rare2i); in forward()
85 RareNeedleBytes { rare1i, rare2i } in forward()
[all …]
Dgenericsimd.rs57 rare1i: u8, field
65 let (rare1i, rare2i) = ninfo.rarebytes.as_rare_ordered_u8(); in new()
72 || rare1i == rare2i in new()
76 Some(Forward { rare1i, rare2i }) in new()
130 let (rare1i, rare2i) = (fwd.rare1i as usize, fwd.rare2i as usize); in fwd_find()
131 let rare1chunk = V::splat(needle[rare1i]); in fwd_find()
226 let chunk0 = V::load_unaligned(ptr.add(fwd.rare1i as usize)); in fwd_find_in_chunk()
/third_party/rust/crates/memchr/src/memmem/prefilter/
Dgenericsimd.rs52 let (rare1i, rare2i) = ninfo.rarebytes.as_rare_ordered_usize(); in find()
63 let rare1chunk = V::splat(needle[rare1i]); in find()
73 let m = find_in_chunk2(ptr, rare1i, rare2i, rare1chunk, rare2chunk); in find()
86 let m = find_in_chunk2(ptr, rare1i, rare2i, rare1chunk, rare2chunk); in find()
122 rare1i: usize, in find_in_chunk2()
127 let chunk0 = V::load_unaligned(ptr.add(rare1i)); in find_in_chunk2()
155 rare1i: usize, in find_in_chunk3()
162 let chunk1 = V::load_unaligned(ptr.add(rare1i)); in find_in_chunk3()
Dmod.rs435 rare1i: usize, in new()
441 let mut rare1i: u8 = rare1i.try_into().unwrap(); in new() localVariable
448 needle[rare1i as usize] = seed.rare1; in new()
460 rare1i = u8::try_from(i).unwrap(); in new()
466 rarebytes: RareNeedleBytes::new(rare1i, rare2i), in new()
538 (rare_start..needle_len).flat_map(move |rare1i| { in generate()
539 (rare1i..needle_len).flat_map(move |rare2i| { in generate()
543 rare1i, in generate()
555 rare1i, in generate()
Dfallback.rs56 let (rare1i, rare2i) = ninfo.rarebytes.as_rare_usize(); in find()
68 if i < rare1i { in find()
75 let aligned_rare2i = i - rare1i + rare2i; in find()
82 return Some(i - rare1i); in find()
88 Some(i.saturating_sub(rare1i)) in find()