Home
last modified time | relevance | path

Searched refs:_PyLong_GetOne (Results 1 – 12 of 12) sorted by relevance

/third_party/python/Objects/
Drangeobject.c111 step = _PyLong_GetOne(); in range_from_array()
195 PyObject *one = _PyLong_GetOne(); // borrowed reference in compute_range_length()
263 if (r->step == _PyLong_GetOne()) { in compute_item()
471 cmp_result = PyObject_RichCompareBool(r0->length, _PyLong_GetOne(), Py_EQ); in range_equals()
540 cmp_result = PyObject_RichCompareBool(r->length, _PyLong_GetOne(), Py_EQ); in range_hash()
598 if (r->step == _PyLong_GetOne()) { in range_index()
1026 new_index = PyNumber_Add(r->index, _PyLong_GetOne()); in longrangeiter_next()
1221 diff = PyNumber_Subtract(it->len, _PyLong_GetOne()); in range_reverse()
Denumobject.c120 stepped_up = PyNumber_Add(next_index, _PyLong_GetOne()); in enum_next_long()
Dsliceobject.c391 step = _PyLong_GetOne(); in _PySlice_GetLongIndices()
Dlongobject.c3689 temp = (PyLongObject *) long_sub(div, (PyLongObject *)_PyLong_GetOne()); in l_divmod()
4098 if (long_compare(a, (PyLongObject *)_PyLong_GetOne())) { in long_invmod()
4334 x = (PyLongObject *) long_add(v, (PyLongObject *)_PyLong_GetOne()); in long_invert()
5127 PyObject *one = _PyLong_GetOne(); // borrowed reference in _PyLong_DivmodNear()
5429 ratio_tuple = PyTuple_Pack(2, numerator, _PyLong_GetOne()); in int_as_integer_ratio_impl()
Dfloatobject.c508 temp = PyNumber_Or(vv, _PyLong_GetOne()); in float_richcompare()
/third_party/python/Include/internal/
Dpycore_long.h69 static inline PyObject* _PyLong_GetOne(void) in _PyLong_GetOne() function
/third_party/python/Modules/
Dmathmodule.c849 PyObject *one = _PyLong_GetOne(); // borrowed ref in math_gcd()
1849 Py_SETREF(a, PyNumber_Subtract(a, _PyLong_GetOne())); in math_isqrt()
3088 result = _PyLong_GetOne(); in math_prod_impl()
3300 PyObject *one = _PyLong_GetOne(); // borrowed ref in math_perm_impl()
3422 PyObject *one = _PyLong_GetOne(); // borrowed ref in math_comb_impl()
D_zoneinfo.c592 if (!PyDict_SetItemString(kwargs, "fold", _PyLong_GetOne())) { in zoneinfo_fromutc()
D_collectionsmodule.c2322 PyObject *one = _PyLong_GetOne(); // borrowed reference in _collections__count_elements_impl()
D_datetimemodule.c2452 y = accum("microseconds", x, us, _PyLong_GetOne(), &leftover_us); in delta_new()
2491 temp = PyNumber_And(x, _PyLong_GetOne()); /* temp <- x & 1 */ in delta_new()
Ditertoolsmodule.c4205 long_step = _PyLong_GetOne(); in itertools_count_impl()
/third_party/python/Modules/_io/
Diobase.c560 PyObject *readahead = PyObject_CallOneArg(peek, _PyLong_GetOne()); in _io__IOBase_readline_impl()