[issue20162] Test test_hash_distribution fails on RHEL 6.5 / ppc64

Serhiy Storchaka report at bugs.python.org
Tue Jan 7 19:08:04 CET 2014


Serhiy Storchaka added the comment:

On platforms where unaligned access is not an issue, gcc produces for memcpy() an optimal binary code equivalent to simple assignment of 32-bit value. Only MSVC produces slow code, but Windows works only on platforms where unaligned access is not an issue. So we can use simple assignment when _MSC_VER is defined and memcpy() in other cases (it is what I was proposed in issue19183 for PY_UHASH_CPY).

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20162>
_______________________________________


More information about the Python-bugs-list mailing list