STINNER Victor added the comment: The union trick is not portable, using memcpy() is safer. Compilers should be able to optimize it. Use Py_MEMCPY() for the stupid Visual Studio compiler unable to optimize memcpy() for small sizes.
---------- keywords: +patch Added file: http://bugs.python.org/file38709/fnv_memcpy.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23786> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com