[issue29816] Get rid of C limitation for shift count in right shift

Mark Dickinson report at bugs.python.org
Wed Mar 22 10:04:56 EDT 2017


Mark Dickinson added the comment:

I much prefer the `divrem1`-based version: it makes fewer assumptions about relative sizes of long / long long / size_t and about the number of bits per digit. I'd rather not have another place that would have to be carefully examined in the future if the number of bits per digit changed again. Overall, Objects/longobject.c is highly portable, and I'd like to keep it that way as much as possible.

----------

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


More information about the Python-bugs-list mailing list