[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers. - Code Review (original) (raw)

OLD

NEW

1 #ifndef Py_CONFIG_H

1 #ifndef Py_CONFIG_H

2 #define Py_CONFIG_H

2 #define Py_CONFIG_H

3

3

4 /* pyconfig.h. NOT Generated automatically by configure.

4 /* pyconfig.h. NOT Generated automatically by configure.

5

5

6 This is a manually maintained version used for the Watcom,

6 This is a manually maintained version used for the Watcom,

7 Borland and Microsoft Visual C++ compilers. It is a

7 Borland and Microsoft Visual C++ compilers. It is a

8 standard part of the Python distribution.

8 standard part of the Python distribution.

9

9

10 WINDOWS DEFINES:

10 WINDOWS DEFINES:

(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading...

300

300

301 /* 64 bit ints are usually spelt __int64 unless compiler has overridden */

301 /* 64 bit ints are usually spelt __int64 unless compiler has overridden */

302 #define HAVE_LONG_LONG 1

302 #define HAVE_LONG_LONG 1

303 #ifndef PY_LONG_LONG

303 #ifndef PY_LONG_LONG

304 # define PY_LONG_LONG __int64

304 # define PY_LONG_LONG __int64

305 # define PY_LLONG_MAX _I64_MAX

305 # define PY_LLONG_MAX _I64_MAX

306 # define PY_LLONG_MIN _I64_MIN

306 # define PY_LLONG_MIN _I64_MIN

307 # define PY_ULLONG_MAX _UI64_MAX

307 # define PY_ULLONG_MAX _UI64_MAX

308 #endif

308 #endif

309

309

310 /* define signed and unsigned exact-width 32-bit and 64-bit types, which may

311 be used in the implementation of Python long integers */

312 #define HAVE_UINT32_T 1

313 #ifndef PY_UINT32_T

314 #define PY_UINT32_T unsigned __int32

315 #endif

316 #define HAVE_UINT64_T 1

317 #ifndef PY_UINT64_T

318 #define PY_UINT64_T unsigned __int64

319 #endif

320 #define HAVE_INT32_T 1

321 #ifndef PY_INT32_T

322 #define PY_INT32_T __int32

323 #endif

324 #define HAVE_INT64_T 1

325 #ifndef PY_INT64_T

326 #define PY_INT64_T __int64

327 #endif

328

310 /* For Windows the Python core is in a DLL by default. Test

329 /* For Windows the Python core is in a DLL by default. Test

311 Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */

330 Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */

312 #if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)

331 #if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)

313 # define Py_ENABLE_SHARED 1 /* standard symbol for shared library */

332 # define Py_ENABLE_SHARED 1 /* standard symbol for shared library */

314 # define MS_COREDLL /* deprecated old symbol */

333 # define MS_COREDLL /* deprecated old symbol */

315 #endif /* !MS_NO_COREDLL && ... */

334 #endif /* !MS_NO_COREDLL && ... */

316

335

317 /* All windows compilers that use this header support __declspec */

336 /* All windows compilers that use this header support __declspec */

318 #define HAVE_DECLSPEC_DLL

337 #define HAVE_DECLSPEC_DLL

319

338

(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading...

710 /* #undef HAVE_LIBTERMLIB */

729 /* #undef HAVE_LIBTERMLIB */

711

730

712 /* Define if you have the thread library (-lthread). */

731 /* Define if you have the thread library (-lthread). */

713 /* #undef HAVE_LIBTHREAD */

732 /* #undef HAVE_LIBTHREAD */

714

733

715 /* WinSock does not use a bitmask in select, and uses

734 /* WinSock does not use a bitmask in select, and uses

716 socket handles greater than FD_SETSIZE */

735 socket handles greater than FD_SETSIZE */

717 #define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE

736 #define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE

718

737

719 #endif /* !Py_CONFIG_H */

738 #endif /* !Py_CONFIG_H */

OLD

NEW