summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib/join.h
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2016-09-13 18:22:02 (GMT)
committerChristian Heimes <christian@python.org>2016-09-13 18:22:02 (GMT)
commitf051e43b22af014364e231c36489e6745993ea34 (patch)
tree7a35470d92a6a5146bfa321bda6f9024e90adc7d /Objects/stringlib/join.h
parenta4d9b17b1fd0f3432c72d686c7668169e39e7119 (diff)
downloadcpython-f051e43b22af014364e231c36489e6745993ea34.zip
cpython-f051e43b22af014364e231c36489e6745993ea34.tar.gz
cpython-f051e43b22af014364e231c36489e6745993ea34.tar.bz2
Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize memcpy().
Diffstat (limited to 'Objects/stringlib/join.h')
-rw-r--r--Objects/stringlib/join.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/stringlib/join.h b/Objects/stringlib/join.h
index 90f966d..6f314e1 100644
--- a/Objects/stringlib/join.h
+++ b/Objects/stringlib/join.h
@@ -107,7 +107,7 @@ STRINGLIB(bytes_join)(PyObject *sep, PyObject *iterable)
for (i = 0; i < nbufs; i++) {
Py_ssize_t n = buffers[i].len;
char *q = buffers[i].buf;
- Py_MEMCPY(p, q, n);
+ memcpy(p, q, n);
p += n;
}
goto done;
@@ -116,12 +116,12 @@ STRINGLIB(bytes_join)(PyObject *sep, PyObject *iterable)
Py_ssize_t n;
char *q;
if (i) {
- Py_MEMCPY(p, sepstr, seplen);
+ memcpy(p, sepstr, seplen);
p += seplen;
}
n = buffers[i].len;
q = buffers[i].buf;
- Py_MEMCPY(p, q, n);
+ memcpy(p, q, n);
p += n;
}
goto done;