summaryrefslogtreecommitdiffstats
path: root/Include/longintrepr.h
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-02-15 11:04:38 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-02-15 11:04:38 (GMT)
commit5a74bf63547fc471022238ea66f61f27ca5b9909 (patch)
treee9411e8cc2a484d2c093fcc54da4b2723ecc5666 /Include/longintrepr.h
parent32732e3fbd67f543ad6591fa6cc0437b43684aa7 (diff)
downloadcpython-5a74bf63547fc471022238ea66f61f27ca5b9909.zip
cpython-5a74bf63547fc471022238ea66f61f27ca5b9909.tar.gz
cpython-5a74bf63547fc471022238ea66f61f27ca5b9909.tar.bz2
Merged revisions 69634 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r69634 | mark.dickinson | 2009-02-15 10:13:41 +0000 (Sun, 15 Feb 2009) | 6 lines Issue #5260: Various portability and standards compliance fixes, optimizations and cleanups in Objects/longobject.c. The most significant change is that longs now use less memory: average savings are 2 bytes per long on 32-bit systems and 6 bytes per long on 64-bit systems. (This memory saving already exists in py3k.) ........
Diffstat (limited to 'Include/longintrepr.h')
-rw-r--r--Include/longintrepr.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Include/longintrepr.h b/Include/longintrepr.h
index 691cc36..72f7199 100644
--- a/Include/longintrepr.h
+++ b/Include/longintrepr.h
@@ -19,14 +19,13 @@ extern "C" {
long_pow() requires that SHIFT be divisible by 5. */
typedef unsigned short digit;
-typedef unsigned int wdigit; /* digit widened to parameter size */
#define BASE_TWODIGITS_TYPE long
typedef unsigned BASE_TWODIGITS_TYPE twodigits;
typedef BASE_TWODIGITS_TYPE stwodigits; /* signed variant of twodigits */
#define PyLong_SHIFT 15
#define PyLong_BASE ((digit)1 << PyLong_SHIFT)
-#define PyLong_MASK ((int)(PyLong_BASE - 1))
+#define PyLong_MASK ((digit)(PyLong_BASE - 1))
#if PyLong_SHIFT % 5 != 0
#error "longobject.c requires that SHIFT be divisible by 5"