Lines Matching refs:wrapping_add
132 i = i.wrapping_add(1); in drop()
296 i = i.wrapping_add(1); in resize()
422 self.inner.back.store(b.wrapping_add(1), Ordering::Release); in push()
458 let new_f = f.wrapping_add(1); in pop()
495 self.inner.back.store(b.wrapping_add(1), Ordering::Relaxed); in pop()
510 f.wrapping_add(1), in pop()
521 self.inner.back.store(b.wrapping_add(1), Ordering::Relaxed); in pop()
641 .compare_exchange(f, f.wrapping_add(1), Ordering::SeqCst, Ordering::Relaxed) in steal()
728 let task = buffer.deref().read(f.wrapping_add(i)); in steal_batch()
729 dest_buffer.write(dest_b.wrapping_add(i), task); in steal_batch()
736 let task = buffer.deref().read(f.wrapping_add(i)); in steal_batch()
737 dest_buffer.write(dest_b.wrapping_add(batch_size - 1 - i), task); in steal_batch()
749 f.wrapping_add(batch_size), in steal_batch()
758 dest_b = dest_b.wrapping_add(batch_size); in steal_batch()
787 .compare_exchange(f, f.wrapping_add(1), Ordering::SeqCst, Ordering::Relaxed) in steal_batch()
802 f = f.wrapping_add(1); in steal_batch()
803 dest_b = dest_b.wrapping_add(1); in steal_batch()
915 let task = buffer.deref().read(f.wrapping_add(i + 1)); in steal_batch_and_pop()
916 dest_buffer.write(dest_b.wrapping_add(i), task); in steal_batch_and_pop()
923 let task = buffer.deref().read(f.wrapping_add(i + 1)); in steal_batch_and_pop()
924 dest_buffer.write(dest_b.wrapping_add(batch_size - 1 - i), task); in steal_batch_and_pop()
936 f.wrapping_add(batch_size + 1), in steal_batch_and_pop()
947 dest_b = dest_b.wrapping_add(batch_size); in steal_batch_and_pop()
956 .compare_exchange(f, f.wrapping_add(1), Ordering::SeqCst, Ordering::Relaxed) in steal_batch_and_pop()
965 f = f.wrapping_add(1); in steal_batch_and_pop()
989 .compare_exchange(f, f.wrapping_add(1), Ordering::SeqCst, Ordering::Relaxed) in steal_batch_and_pop()
1004 f = f.wrapping_add(1); in steal_batch_and_pop()
1005 dest_b = dest_b.wrapping_add(1); in steal_batch_and_pop()
1264 let next_index = new_tail.wrapping_add(1 << SHIFT); in push()
1354 let mut next_index = (new_head & !HAS_NEXT).wrapping_add(1 << SHIFT); in steal()
1473 let mut next_index = (new_head & !HAS_NEXT).wrapping_add(1 << SHIFT); in steal_batch()
1492 dest_buffer.write(dest_b.wrapping_add(i as isize), task); in steal_batch()
1504 dest_buffer.write(dest_b.wrapping_add((batch_size - 1 - i) as isize), task); in steal_batch()
1517 .store(dest_b.wrapping_add(batch_size as isize), Ordering::Release); in steal_batch()
1631 let mut next_index = (new_head & !HAS_NEXT).wrapping_add(1 << SHIFT); in steal_batch_and_pop()
1655 dest_buffer.write(dest_b.wrapping_add(i as isize), task); in steal_batch_and_pop()
1668 dest_buffer.write(dest_b.wrapping_add((batch_size - 1 - i) as isize), task); in steal_batch_and_pop()
1681 .store(dest_b.wrapping_add(batch_size as isize), Ordering::Release); in steal_batch_and_pop()
1750 tail = tail.wrapping_add(1 << SHIFT); in len()
1753 head = head.wrapping_add(1 << SHIFT); in len()
1799 head = head.wrapping_add(1 << SHIFT); in drop()