mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
replace Python aliases for standard integer types with the standard integer types (#17884)
This commit is contained in:
parent
88bd3edb3e
commit
9b3d77052f
8 changed files with 72 additions and 87 deletions
|
@ -42,10 +42,10 @@ extern "C" {
|
|||
*/
|
||||
|
||||
#if PYLONG_BITS_IN_DIGIT == 30
|
||||
typedef PY_UINT32_T digit;
|
||||
typedef PY_INT32_T sdigit; /* signed variant of digit */
|
||||
typedef PY_UINT64_T twodigits;
|
||||
typedef PY_INT64_T stwodigits; /* signed variant of twodigits */
|
||||
typedef uint32_t digit;
|
||||
typedef int32_t sdigit; /* signed variant of digit */
|
||||
typedef uint64_t twodigits;
|
||||
typedef int64_t stwodigits; /* signed variant of twodigits */
|
||||
#define PyLong_SHIFT 30
|
||||
#define _PyLong_DECIMAL_SHIFT 9 /* max(e such that 10**e fits in a digit) */
|
||||
#define _PyLong_DECIMAL_BASE ((digit)1000000000) /* 10 ** DECIMAL_SHIFT */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue