Martin v. Löwis <[email protected]> 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 <[email protected]>
<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