Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.

Backport of r70459.
This commit is contained in:
Mark Dickinson 2009-03-20 15:51:55 +00:00
parent c8e81ef508
commit efc82f7e8e
17 changed files with 859 additions and 64 deletions

View file

@ -24,6 +24,7 @@ PyAPI_FUNC(long) PyLong_AsLong(PyObject *);
PyAPI_FUNC(unsigned long) PyLong_AsUnsignedLong(PyObject *);
PyAPI_FUNC(unsigned long) PyLong_AsUnsignedLongMask(PyObject *);
PyAPI_FUNC(Py_ssize_t) PyLong_AsSsize_t(PyObject *);
PyAPI_FUNC(PyObject *) PyLong_GetInfo(void);
/* For use by intobject.c only */
#define _PyLong_AsSsize_t PyLong_AsSsize_t