[Python-Dev] Re: Is anyone using 15-bit PyLong digits (PYLONG_BITS_IN_DIGIT=15)?

2021年12月30日 19:38:18 -0800

>> The reason for digits being a multiple of 5 bits should be revisited vs
>> its original intent
> I added that. The only intent was to make it easier to implement
> bigint exponentiation easily ...
That said, I see the comments in longintrepr.h note a stronger constraint:
"""
the marshal code currently expects that PyLong_SHIFT is a multiple of 15
"""
But that's doubtless also shallow.
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/YSNDNGB2QUBS3ZX2JZNFZCDITRTDGBEM/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to