summaryrefslogtreecommitdiffstats
path: root/Python/pyhash.c
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 /Python/pyhash.c
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 'Python/pyhash.c')
-rw-r--r--Python/pyhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pyhash.c b/Python/pyhash.c
index 9080d25..57a2da7 100644
--- a/Python/pyhash.c
+++ b/Python/pyhash.c
@@ -396,7 +396,7 @@ siphash24(const void *src, Py_ssize_t src_sz) {
case 7: pt[6] = m[6];
case 6: pt[5] = m[5];
case 5: pt[4] = m[4];
- case 4: Py_MEMCPY(pt, m, sizeof(uint32_t)); break;
+ case 4: memcpy(pt, m, sizeof(uint32_t)); break;
case 3: pt[2] = m[2];
case 2: pt[1] = m[1];
case 1: pt[0] = m[0];