Created
January 30, 2014 12:25
-
-
Save anossov/8707420 to your computer and use it in GitHub Desktop.
cPython small integers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef NSMALLPOSINTS | |
#define NSMALLPOSINTS 257 | |
#endif | |
#ifndef NSMALLNEGINTS | |
#define NSMALLNEGINTS 5 | |
#endif | |
#if NSMALLNEGINTS + NSMALLPOSINTS > 0 | |
/* References to small integers are saved in this array so that they | |
can be shared. | |
The integers that are saved are those in the range | |
-NSMALLNEGINTS (inclusive) to NSMALLPOSINTS (not inclusive). | |
*/ | |
static PyIntObject *small_ints[NSMALLNEGINTS + NSMALLPOSINTS]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment