Lines Matching refs:start_ptr
25 let start_ptr = haystack.as_ptr(); in memchr() localVariable
27 let mut ptr = start_ptr; in memchr()
37 if let Some(i) = forward_search1(start_ptr, end_ptr, ptr, vn1) { in memchr()
41 ptr = ptr.add(VECTOR_SIZE - (start_ptr as usize & VECTOR_ALIGN)); in memchr()
42 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr); in memchr()
58 let mut at = sub(ptr, start_ptr); in memchr()
86 if let Some(i) = forward_search1(start_ptr, end_ptr, ptr, vn1) { in memchr()
96 return forward_search1(start_ptr, end_ptr, ptr, vn1); in memchr()
107 let start_ptr = haystack.as_ptr(); in memchr2() localVariable
109 let mut ptr = start_ptr; in memchr2()
114 return Some(sub(ptr, start_ptr)); in memchr2()
121 if let Some(i) = forward_search2(start_ptr, end_ptr, ptr, vn1, vn2) { in memchr2()
125 ptr = ptr.add(VECTOR_SIZE - (start_ptr as usize & VECTOR_ALIGN)); in memchr2()
126 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr); in memchr2()
140 let mut at = sub(ptr, start_ptr); in memchr2()
155 if let Some(i) = forward_search2(start_ptr, end_ptr, ptr, vn1, vn2) { in memchr2()
165 return forward_search2(start_ptr, end_ptr, ptr, vn1, vn2); in memchr2()
182 let start_ptr = haystack.as_ptr(); in memchr3() localVariable
184 let mut ptr = start_ptr; in memchr3()
189 return Some(sub(ptr, start_ptr)); in memchr3()
196 if let Some(i) = forward_search3(start_ptr, end_ptr, ptr, vn1, vn2, vn3) { in memchr3()
200 ptr = ptr.add(VECTOR_SIZE - (start_ptr as usize & VECTOR_ALIGN)); in memchr3()
201 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr); in memchr3()
219 let mut at = sub(ptr, start_ptr); in memchr3()
237 forward_search3(start_ptr, end_ptr, ptr, vn1, vn2, vn3) in memchr3()
248 return forward_search3(start_ptr, end_ptr, ptr, vn1, vn2, vn3); in memchr3()
258 let start_ptr = haystack.as_ptr(); in memrchr() localVariable
263 while ptr > start_ptr { in memrchr()
266 return Some(sub(ptr, start_ptr)); in memrchr()
273 if let Some(i) = reverse_search1(start_ptr, end_ptr, ptr, vn1) { in memrchr()
278 debug_assert!(start_ptr <= ptr && ptr <= end_ptr); in memrchr()
279 while loop_size == LOOP_SIZE && ptr >= start_ptr.add(loop_size) { in memrchr()
295 let mut at = sub(ptr.add(3 * VECTOR_SIZE), start_ptr); in memrchr()
319 while ptr >= start_ptr.add(VECTOR_SIZE) { in memrchr()
321 if let Some(i) = reverse_search1(start_ptr, end_ptr, ptr, vn1) { in memrchr()
325 if ptr > start_ptr { in memrchr()
326 debug_assert!(sub(ptr, start_ptr) < VECTOR_SIZE); in memrchr()
327 return reverse_search1(start_ptr, end_ptr, start_ptr, vn1); in memrchr()
338 let start_ptr = haystack.as_ptr(); in memrchr2() localVariable
343 while ptr > start_ptr { in memrchr2()
346 return Some(sub(ptr, start_ptr)); in memrchr2()
353 if let Some(i) = reverse_search2(start_ptr, end_ptr, ptr, vn1, vn2) { in memrchr2()
358 debug_assert!(start_ptr <= ptr && ptr <= end_ptr); in memrchr2()
359 while loop_size == LOOP_SIZE2 && ptr >= start_ptr.add(loop_size) { in memrchr2()
373 let mut at = sub(ptr.add(VECTOR_SIZE), start_ptr); in memrchr2()
386 while ptr >= start_ptr.add(VECTOR_SIZE) { in memrchr2()
388 if let Some(i) = reverse_search2(start_ptr, end_ptr, ptr, vn1, vn2) { in memrchr2()
392 if ptr > start_ptr { in memrchr2()
393 debug_assert!(sub(ptr, start_ptr) < VECTOR_SIZE); in memrchr2()
394 return reverse_search2(start_ptr, end_ptr, start_ptr, vn1, vn2); in memrchr2()
411 let start_ptr = haystack.as_ptr(); in memrchr3() localVariable
416 while ptr > start_ptr { in memrchr3()
419 return Some(sub(ptr, start_ptr)); in memrchr3()
426 if let Some(i) = reverse_search3(start_ptr, end_ptr, ptr, vn1, vn2, vn3) { in memrchr3()
431 debug_assert!(start_ptr <= ptr && ptr <= end_ptr); in memrchr3()
432 while loop_size == LOOP_SIZE2 && ptr >= start_ptr.add(loop_size) { in memrchr3()
450 let mut at = sub(ptr.add(VECTOR_SIZE), start_ptr); in memrchr3()
465 while ptr >= start_ptr.add(VECTOR_SIZE) { in memrchr3()
468 reverse_search3(start_ptr, end_ptr, ptr, vn1, vn2, vn3) in memrchr3()
473 if ptr > start_ptr { in memrchr3()
474 debug_assert!(sub(ptr, start_ptr) < VECTOR_SIZE); in memrchr3()
475 return reverse_search3(start_ptr, end_ptr, start_ptr, vn1, vn2, vn3); in memrchr3()
482 start_ptr: *const u8, in forward_search1()
487 debug_assert!(sub(end_ptr, start_ptr) >= VECTOR_SIZE); in forward_search1()
488 debug_assert!(start_ptr <= ptr); in forward_search1()
494 Some(sub(ptr, start_ptr) + forward_pos(mask)) in forward_search1()
502 start_ptr: *const u8, in forward_search2()
508 debug_assert!(sub(end_ptr, start_ptr) >= VECTOR_SIZE); in forward_search2()
509 debug_assert!(start_ptr <= ptr); in forward_search2()
518 Some(sub(ptr, start_ptr) + forward_pos2(mask1, mask2)) in forward_search2()
526 start_ptr: *const u8, in forward_search3()
533 debug_assert!(sub(end_ptr, start_ptr) >= VECTOR_SIZE); in forward_search3()
534 debug_assert!(start_ptr <= ptr); in forward_search3()
546 Some(sub(ptr, start_ptr) + forward_pos3(mask1, mask2, mask3)) in forward_search3()
554 start_ptr: *const u8, in reverse_search1()
559 debug_assert!(sub(end_ptr, start_ptr) >= VECTOR_SIZE); in reverse_search1()
560 debug_assert!(start_ptr <= ptr); in reverse_search1()
566 Some(sub(ptr, start_ptr) + reverse_pos(mask)) in reverse_search1()
574 start_ptr: *const u8, in reverse_search2()
580 debug_assert!(sub(end_ptr, start_ptr) >= VECTOR_SIZE); in reverse_search2()
581 debug_assert!(start_ptr <= ptr); in reverse_search2()
590 Some(sub(ptr, start_ptr) + reverse_pos2(mask1, mask2)) in reverse_search2()
598 start_ptr: *const u8, in reverse_search3()
605 debug_assert!(sub(end_ptr, start_ptr) >= VECTOR_SIZE); in reverse_search3()
606 debug_assert!(start_ptr <= ptr); in reverse_search3()
618 Some(sub(ptr, start_ptr) + reverse_pos3(mask1, mask2, mask3)) in reverse_search3()