1010#include "pycore_list.h" // struct _Py_list_freelist, _PyListIterObject
1111#include "pycore_long.h" // _PyLong_DigitCount
1212#include "pycore_modsupport.h" // _PyArg_NoKwnames()
13- #include "pycore_object.h" // _PyObject_GC_TRACK(), _Py_ptr_wise_atomic_memmove ()
13+ #include "pycore_object.h" // _PyObject_GC_TRACK(), _PyObject_ptr_wise_atomic_memmove ()
1414#include "pycore_pyatomic_ft_wrappers.h"
1515#include "pycore_setobject.h" // _PySet_NextEntry()
1616#include "pycore_stackref.h" // _Py_TryIncrefCompareStackRef()
@@ -985,7 +985,7 @@ list_ass_slice_lock_held(PyListObject *a, Py_ssize_t ilow, Py_ssize_t ihigh, PyO
985985 if (d < 0 ) { /* Delete -d items */
986986 Py_ssize_t tail = Py_SIZE (a ) - ihigh ;
987987 _Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED (a );
988- _Py_ptr_wise_atomic_memmove (( PyObject * ) a , & item [ihigh + d ], & item [ihigh ], tail );
988+ _PyObject_ptr_wise_atomic_memmove ( a , & item [ihigh + d ], & item [ihigh ], tail );
989989 (void )list_resize (a , Py_SIZE (a ) + d ); // NB: shrinking a list can't fail
990990 item = a -> ob_item ;
991991 }
@@ -995,7 +995,7 @@ list_ass_slice_lock_held(PyListObject *a, Py_ssize_t ilow, Py_ssize_t ihigh, PyO
995995 goto Error ;
996996 item = a -> ob_item ;
997997 _Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED (a );
998- _Py_ptr_wise_atomic_memmove (( PyObject * ) a , & item [ihigh + d ], & item [ihigh ], k - ihigh );
998+ _PyObject_ptr_wise_atomic_memmove ( a , & item [ihigh + d ], & item [ihigh ], k - ihigh );
999999 }
10001000 for (k = 0 ; k < n ; k ++ , ilow ++ ) {
10011001 PyObject * w = vitem [k ];
@@ -1087,7 +1087,7 @@ list_inplace_repeat_lock_held(PyListObject *self, Py_ssize_t n)
10871087 Py_ssize_t copied = input_size ;
10881088 while (copied < output_size ) {
10891089 Py_ssize_t items_to_copy = Py_MIN (copied , output_size - copied );
1090- _Py_ptr_wise_atomic_memmove (( PyObject * ) self , items + copied , items , items_to_copy );
1090+ _PyObject_ptr_wise_atomic_memmove ( self , items + copied , items , items_to_copy );
10911091 copied += items_to_copy ;
10921092 }
10931093#endif
@@ -1586,7 +1586,7 @@ list_pop_impl(PyListObject *self, Py_ssize_t index)
15861586 Py_ssize_t size_after_pop = Py_SIZE (self ) - 1 ;
15871587 if (index < size_after_pop ) {
15881588 _Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED (self );
1589- _Py_ptr_wise_atomic_memmove (( PyObject * ) self , & items [index ], & items [index + 1 ],
1589+ _PyObject_ptr_wise_atomic_memmove ( self , & items [index ], & items [index + 1 ],
15901590 size_after_pop - index );
15911591 }
15921592 list_resize (self , size_after_pop ); // NB: shrinking a list can't fail
@@ -3771,13 +3771,13 @@ list_ass_subscript_lock_held(PyObject *_self, PyObject *item, PyObject *value)
37713771 }
37723772
37733773 _Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED (self );
3774- _Py_ptr_wise_atomic_memmove (( PyObject * ) self , self -> ob_item + cur - i ,
3774+ _PyObject_ptr_wise_atomic_memmove ( self , self -> ob_item + cur - i ,
37753775 self -> ob_item + cur + 1 , lim );
37763776 }
37773777 cur = start + (size_t )slicelength * step ;
37783778 if (cur < (size_t )Py_SIZE (self )) {
37793779 _Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED (self );
3780- _Py_ptr_wise_atomic_memmove (( PyObject * ) self , self -> ob_item + cur - slicelength ,
3780+ _PyObject_ptr_wise_atomic_memmove ( self , self -> ob_item + cur - slicelength ,
37813781 self -> ob_item + cur , Py_SIZE (self ) - cur );
37823782 }
37833783
0 commit comments