Alexander Belopolsky added the comment:

We can further optimize _divide_and_round by changing r*=2 to r<<=1 and q % 2 
== 1 to (q & 1), but this will obfuscate the algorithm and limit arguments to 
ints.  (As written, _divide_and_round will work with any numeric types.)

----------

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

Reply via email to