Searched refs:_PyLong_GetOne (Results 1 – 12 of 12) sorted by relevance
/third_party/python/Objects/ |
D | rangeobject.c | 111 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()
|
D | enumobject.c | 120 stepped_up = PyNumber_Add(next_index, _PyLong_GetOne()); in enum_next_long()
|
D | sliceobject.c | 391 step = _PyLong_GetOne(); in _PySlice_GetLongIndices()
|
D | longobject.c | 3689 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()
|
D | floatobject.c | 508 temp = PyNumber_Or(vv, _PyLong_GetOne()); in float_richcompare()
|
/third_party/python/Include/internal/ |
D | pycore_long.h | 69 static inline PyObject* _PyLong_GetOne(void) in _PyLong_GetOne() function
|
/third_party/python/Modules/ |
D | mathmodule.c | 849 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.c | 592 if (!PyDict_SetItemString(kwargs, "fold", _PyLong_GetOne())) { in zoneinfo_fromutc()
|
D | _collectionsmodule.c | 2322 PyObject *one = _PyLong_GetOne(); // borrowed reference in _collections__count_elements_impl()
|
D | _datetimemodule.c | 2452 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()
|
D | itertoolsmodule.c | 4205 long_step = _PyLong_GetOne(); in itertools_count_impl()
|
/third_party/python/Modules/_io/ |
D | iobase.c | 560 PyObject *readahead = PyObject_CallOneArg(peek, _PyLong_GetOne()); in _io__IOBase_readline_impl()
|