[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

Gregory P. Smith report at bugs.python.org
Wed Feb 18 06:13:32 CET 2009


Gregory P. Smith <greg at krypto.org> added the comment:

> I would suggest to use 2^30 base only if sizeof(long)>=8 (64 bits
CPU).

Thats not the correct test.  Test for an actual 64-bit build target. 
sizeof(long) and sizeof(long long) are not usefully related to that in
any sort of cross platform manner.  On windows, we'd define the flag for
15 vs 30 bit longs in the build configs for the various build targets. 
On every thing else (autoconf), we can use a configure test to check the
same things that platform.architecture() checks to return '32bit' vs
'64bit'.

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


More information about the Python-bugs-list mailing list