Searched refs:get_and_increment (Results 1 – 2 of 2) sorted by relevance
14 unsafe fn get_and_increment<T>(ptr: &mut *mut T) -> *mut T { in get_and_increment() function176 get_and_increment(&mut right) in merge()178 get_and_increment(left) in merge()180 ptr::copy_nonoverlapping(to_copy, get_and_increment(out), 1); in merge()482 get_and_increment(&mut s.right_start) in par_merge()484 get_and_increment(&mut s.left_start) in par_merge()486 ptr::copy_nonoverlapping(to_copy, get_and_increment(&mut s.dest), 1); in par_merge()
594 def get_and_increment(): function600 self.assertAllEqual(1, get_and_increment())601 self.assertAllEqual(2, get_and_increment())604 self.assertAllEqual(3, get_and_increment())