Martin v. Löwis <mar...@v.loewis.de> added the comment:

"The only way ..." That's not true. y=x*(1<<n) is also an exact multiplication 
with a power of two, and it's also fairly fast. Likewise for y=x/(1<<n).

----------
nosy: +loewis

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11967>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to