mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize memcpy().
This commit is contained in:
parent
a4d9b17b1f
commit
f051e43b22
14 changed files with 83 additions and 97 deletions
|
@ -2353,7 +2353,7 @@ _PyObject_Call_Prepend(PyObject *func,
|
|||
|
||||
/* use borrowed references */
|
||||
stack[0] = obj;
|
||||
Py_MEMCPY(&stack[1],
|
||||
memcpy(&stack[1],
|
||||
&PyTuple_GET_ITEM(args, 0),
|
||||
argcount * sizeof(PyObject *));
|
||||
|
||||
|
@ -2428,7 +2428,7 @@ _PyStack_UnpackDict(PyObject **args, Py_ssize_t nargs, PyObject *kwargs,
|
|||
}
|
||||
|
||||
/* Copy position arguments (borrowed references) */
|
||||
Py_MEMCPY(stack, args, nargs * sizeof(stack[0]));
|
||||
memcpy(stack, args, nargs * sizeof(stack[0]));
|
||||
|
||||
kwstack = stack + nargs;
|
||||
pos = i = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue