Lines Matching refs:sub

41         let mut at = sub(ptr, start_ptr);
82 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr);
83 while loop_size == LOOP_SIZE && ptr <= end_ptr.sub(loop_size) {
103 while ptr <= end_ptr.sub(VECTOR_SIZE) {
104 debug_assert!(sub(end_ptr, ptr) >= VECTOR_SIZE);
112 debug_assert!(sub(end_ptr, ptr) < VECTOR_SIZE);
113 ptr = ptr.sub(VECTOR_SIZE - sub(end_ptr, ptr));
114 debug_assert_eq!(sub(end_ptr, ptr), VECTOR_SIZE);
134 let mut at = sub(ptr, start_ptr);
158 return Some(sub(ptr, start_ptr));
170 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr);
171 while loop_size == LOOP_SIZE2 && ptr <= end_ptr.sub(loop_size) {
188 while ptr <= end_ptr.sub(VECTOR_SIZE) {
195 debug_assert!(sub(end_ptr, ptr) < VECTOR_SIZE);
196 ptr = ptr.sub(VECTOR_SIZE - sub(end_ptr, ptr));
197 debug_assert_eq!(sub(end_ptr, ptr), VECTOR_SIZE);
224 let mut at = sub(ptr, start_ptr);
251 return Some(sub(ptr, start_ptr));
263 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr);
264 while loop_size == LOOP_SIZE2 && ptr <= end_ptr.sub(loop_size) {
287 while ptr <= end_ptr.sub(VECTOR_SIZE) {
296 debug_assert!(sub(end_ptr, ptr) < VECTOR_SIZE);
297 ptr = ptr.sub(VECTOR_SIZE - sub(end_ptr, ptr));
298 debug_assert_eq!(sub(end_ptr, ptr), VECTOR_SIZE);
318 return Some(sub(ptr, start_ptr));
324 ptr = ptr.sub(VECTOR_SIZE);
334 ptr = ptr.sub(loop_size);
347 let mut at = sub(ptr.add(3 * VECTOR_SIZE), start_ptr);
372 ptr = ptr.sub(VECTOR_SIZE);
378 debug_assert!(sub(ptr, start_ptr) < VECTOR_SIZE);
398 return Some(sub(ptr, start_ptr));
404 ptr = ptr.sub(VECTOR_SIZE);
414 ptr = ptr.sub(loop_size);
425 let mut at = sub(ptr.add(VECTOR_SIZE), start_ptr);
439 ptr = ptr.sub(VECTOR_SIZE);
445 debug_assert!(sub(ptr, start_ptr) < VECTOR_SIZE);
471 return Some(sub(ptr, start_ptr));
477 ptr = ptr.sub(VECTOR_SIZE);
487 ptr = ptr.sub(loop_size);
502 let mut at = sub(ptr.add(VECTOR_SIZE), start_ptr);
518 ptr = ptr.sub(VECTOR_SIZE);
526 debug_assert!(sub(ptr, start_ptr) < VECTOR_SIZE);
539 debug_assert!(sub(end_ptr, start_ptr) >= VECTOR_SIZE);
541 debug_assert!(ptr <= end_ptr.sub(VECTOR_SIZE));
546 Some(sub(ptr, start_ptr) + forward_pos(mask))
560 debug_assert!(sub(end_ptr, start_ptr) >= VECTOR_SIZE);
562 debug_assert!(ptr <= end_ptr.sub(VECTOR_SIZE));
570 Some(sub(ptr, start_ptr) + forward_pos2(mask1, mask2))
585 debug_assert!(sub(end_ptr, start_ptr) >= VECTOR_SIZE);
587 debug_assert!(ptr <= end_ptr.sub(VECTOR_SIZE));
598 Some(sub(ptr, start_ptr) + forward_pos3(mask1, mask2, mask3))
611 debug_assert!(sub(end_ptr, start_ptr) >= VECTOR_SIZE);
613 debug_assert!(ptr <= end_ptr.sub(VECTOR_SIZE));
618 Some(sub(ptr, start_ptr) + reverse_pos(mask))
632 debug_assert!(sub(end_ptr, start_ptr) >= VECTOR_SIZE);
634 debug_assert!(ptr <= end_ptr.sub(VECTOR_SIZE));
642 Some(sub(ptr, start_ptr) + reverse_pos2(mask1, mask2))
657 debug_assert!(sub(end_ptr, start_ptr) >= VECTOR_SIZE);
659 debug_assert!(ptr <= end_ptr.sub(VECTOR_SIZE));
670 Some(sub(ptr, start_ptr) + reverse_pos3(mask1, mask2, mask3))
752 fn sub(a: *const u8, b: *const u8) -> usize {