[issue1087418] long int bitwise ops speedup (patch included)

Mark Dickinson report at bugs.python.org
Sun Oct 25 15:00:41 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

I think Greg's patch looks fine, modulo updating it to apply cleanly to 
py3k.

I couldn't resist tinkering a bit, though:  factoring out the complement 
operations (for a, b and z) into a separate function gives (IMO) cleaner 
and more direct code that's free of mask operations.

Here's the patch.

----------
Added file: http://bugs.python.org/file15195/long_bitwise_ops_metd.patch

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


More information about the Python-bugs-list mailing list