Home
last modified time | relevance | path

Searched refs:_PyLong_One (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython3/Objects/
Drangeobject.c88 Py_INCREF(_PyLong_One); in range_new()
89 step = _PyLong_One; in range_new()
189 if ((diff = PyNumber_Subtract(tmp1, _PyLong_One)) == NULL) in compute_range_length()
195 if ((result = PyNumber_Add(tmp2, _PyLong_One)) == NULL) in compute_range_length()
425 cmp_result = PyObject_RichCompareBool(r0->length, _PyLong_One, Py_EQ); in range_equals()
494 cmp_result = PyObject_RichCompareBool(r->length, _PyLong_One, Py_EQ); in range_hash()
978 new_index = PyNumber_Add(r->index, _PyLong_One); in longrangeiter_next()
1163 diff = PyNumber_Subtract(it->len, _PyLong_One); in range_reverse()
Denumobject.c118 stepped_up = PyNumber_Add(next_index, _PyLong_One); in enum_next_long()
Dlongobject.c35 PyObject *_PyLong_One = NULL; variable
3680 temp = (PyLongObject *) long_sub(div, (PyLongObject *)_PyLong_One); in l_divmod()
4218 x = (PyLongObject *) long_add(v, (PyLongObject *)_PyLong_One); in long_invert()
4959 twice_rem = long_lshift((PyObject *)rem, _PyLong_One); in _PyLong_DivmodNear()
4976 temp = long_sub(quo, (PyLongObject *)_PyLong_One); in _PyLong_DivmodNear()
4978 temp = long_add(quo, (PyLongObject *)_PyLong_One); in _PyLong_DivmodNear()
5497 _PyLong_One = PyLong_FromLong(1); in _PyLong_Init()
5498 if (_PyLong_One == NULL) in _PyLong_Init()
5516 Py_CLEAR(_PyLong_One); in PyLong_Fini()
Dfloatobject.c466 temp = PyNumber_Lshift(ww, _PyLong_One); in float_richcompare()
472 temp = PyNumber_Lshift(vv, _PyLong_One); in float_richcompare()
478 temp = PyNumber_Or(vv, _PyLong_One); in float_richcompare()
Dsliceobject.c381 step = _PyLong_One; in _PySlice_GetLongIndices()
/external/python/cpython3/Include/
Dlongobject.h214 PyAPI_DATA(PyObject *) _PyLong_One;
/external/python/cpython3/Tools/c-globals/
Dignored-globals.txt352 _PyLong_One
/external/python/cpython3/Modules/_io/
Diobase.c547 PyObject *readahead = PyObject_CallFunctionObjArgs(peek, _PyLong_One, NULL); in _io__IOBase_readline_impl()
/external/python/cpython3/Modules/
D_collectionsmodule.c2320 if (_PyDict_SetItem_KnownHash(mapping, key, _PyLong_One, hash) < 0) in _count_elements()
2323 newval = PyNumber_Add(oldval, _PyLong_One); in _count_elements()
2344 newval = PyNumber_Add(oldval, _PyLong_One); in _count_elements()
D_datetimemodule.c2443 y = accum("microseconds", x, us, _PyLong_One, &leftover_us); in delta_new()
2483 temp = PyNumber_And(x, _PyLong_One); /* temp <- x & 1 */ in delta_new()
Ditertoolsmodule.c4000 long_step = _PyLong_One; in count_new()