Example #1
0
 def move(self, dest_idx, src_idx, count):
     """
     Move `count` elements from `src_idx` to `dest_idx`.
     """
     dest_ptr = self._gep(dest_idx)
     src_ptr = self._gep(src_idx)
     cgutils.memmove(self._builder, dest_ptr, src_ptr,
                     count, itemsize=self._itemsize)
Example #2
0
 def move(self, dest_idx, src_idx, count):
     """
     Move `count` elements from `src_idx` to `dest_idx`.
     """
     dest_ptr = self._gep(dest_idx)
     src_ptr = self._gep(src_idx)
     cgutils.memmove(self._builder, dest_ptr, src_ptr, count, itemsize=self._itemsize)
     self.set_dirty(True)