Serhiy Storchaka added the comment: I think following patch doesn't introduce undefined behavior. With this patch GCC on 32-bit i386 Linux produces the same code as for simple unsigned short read.
I don't know wherever the benefit worth such complication. I don't know wherever the patch can cause performance regression on other platforms or compilers. ---------- Added file: http://bugs.python.org/file41274/improve_arg_decoding3.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25823> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com