Lines Matching refs:ival
87 PyInt_FromLong(long ival) in PyInt_FromLong() argument
91 if (-NSMALLNEGINTS <= ival && ival < NSMALLPOSINTS) { in PyInt_FromLong()
92 v = small_ints[ival + NSMALLNEGINTS]; in PyInt_FromLong()
95 if (ival >= 0) in PyInt_FromLong()
111 v->ob_ival = ival; in PyInt_FromLong()
116 PyInt_FromSize_t(size_t ival) in PyInt_FromSize_t() argument
118 if (ival <= LONG_MAX) in PyInt_FromSize_t()
119 return PyInt_FromLong((long)ival); in PyInt_FromSize_t()
120 return _PyLong_FromSize_t(ival); in PyInt_FromSize_t()
124 PyInt_FromSsize_t(Py_ssize_t ival) in PyInt_FromSsize_t() argument
126 if (ival >= LONG_MIN && ival <= LONG_MAX) in PyInt_FromSsize_t()
127 return PyInt_FromLong((long)ival); in PyInt_FromSsize_t()
128 return _PyLong_FromSsize_t(ival); in PyInt_FromSsize_t()
1121 long ival; in int_subtype_new() local
1128 ival = PyLong_AsLong(tmp); in int_subtype_new()
1129 if (ival == -1 && PyErr_Occurred()) { in int_subtype_new()
1134 ival = ((PyIntObject *)tmp)->ob_ival; in int_subtype_new()
1142 ((PyIntObject *)newobj)->ob_ival = ival; in int_subtype_new()
1456 int ival; in _PyInt_Init() local
1458 for (ival = -NSMALLNEGINTS; ival < NSMALLPOSINTS; ival++) { in _PyInt_Init()
1465 v->ob_ival = ival; in _PyInt_Init()
1466 small_ints[ival + NSMALLNEGINTS] = v; in _PyInt_Init()