Home
last modified time | relevance | path

Searched refs:NSMALLNEGINTS (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/
Dintobject.c70 #ifndef NSMALLNEGINTS
71 #define NSMALLNEGINTS 5 macro
73 #if NSMALLNEGINTS + NSMALLPOSINTS > 0
79 static PyIntObject *small_ints[NSMALLNEGINTS + NSMALLPOSINTS];
90 #if NSMALLNEGINTS + NSMALLPOSINTS > 0 in PyInt_FromLong()
91 if (-NSMALLNEGINTS <= ival && ival < NSMALLPOSINTS) { in PyInt_FromLong()
92 v = small_ints[ival + NSMALLNEGINTS]; in PyInt_FromLong()
1457 #if NSMALLNEGINTS + NSMALLPOSINTS > 0 in _PyInt_Init()
1458 for (ival = -NSMALLNEGINTS; ival < NSMALLPOSINTS; ival++) { in _PyInt_Init()
1466 small_ints[ival + NSMALLNEGINTS] = v; in _PyInt_Init()
[all …]
/external/python/cpython3/Objects/
Dlongobject.c21 #ifndef NSMALLNEGINTS
22 #define NSMALLNEGINTS 5 macro
37 #if NSMALLNEGINTS + NSMALLPOSINTS > 0
43 static PyLongObject small_ints[NSMALLNEGINTS + NSMALLPOSINTS];
52 assert(-NSMALLNEGINTS <= ival && ival < NSMALLPOSINTS); in get_small_int()
53 v = (PyObject *)&small_ints[ival + NSMALLNEGINTS]; in get_small_int()
64 do if (-NSMALLNEGINTS <= ival && ival < NSMALLPOSINTS) { \
73 if (-NSMALLNEGINTS <= ival && ival < NSMALLPOSINTS) { in maybe_small_long()
5465 #if NSMALLNEGINTS + NSMALLPOSINTS > 0 in _PyLong_Init()
5469 for (ival = -NSMALLNEGINTS; ival < NSMALLPOSINTS; ival++, v++) { in _PyLong_Init()
[all …]