Home
last modified time | relevance | path

Searched refs:Py_ABS (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython3/Objects/
Dlongobject.c71 if (v && Py_ABS(Py_SIZE(v)) <= 1) { in maybe_small_long()
128 Py_ssize_t j = Py_ABS(Py_SIZE(v)); in long_normalize()
753 ndigits = Py_ABS(Py_SIZE(v)); in _PyLong_NumBits()
1567 const Py_ssize_t size = Py_ABS(Py_SIZE(a)); in divrem1()
1602 size_a = Py_ABS(Py_SIZE(a)); in long_to_decimal_string_internal()
1794 size_a = Py_ABS(Py_SIZE(a)); in long_format_binary()
2548 Py_ssize_t size_a = Py_ABS(Py_SIZE(a)), size_b = Py_ABS(Py_SIZE(b)); in long_divrem()
2628 size_v = Py_ABS(Py_SIZE(v1)); in x_divrem()
2629 size_w = Py_ABS(Py_SIZE(w1)); in x_divrem()
2760 a_size = Py_ABS(Py_SIZE(a)); in _PyLong_Frexp()
[all …]
Dlistobject.c2060 assert(Py_ABS(Py_SIZE(v)) <= 1); in unsafe_long_compare()
2061 assert(Py_ABS(Py_SIZE(w)) <= 1); in unsafe_long_compare()
2257 if (ints_are_bounded && Py_ABS(Py_SIZE(key)) > 1) in list_sort_impl()
Dfloatobject.c1579 py_exponent = PyLong_FromLong(Py_ABS(exponent)); in float_as_integer_ratio_impl()
/external/python/cpython3/Include/
Dpymacro.h11 #define Py_ABS(x) ((x) < 0 ? -(x) : (x)) macro
/external/python/cpython3/Python/
Dpytime.c482 abs_r = Py_ABS(r); in _PyTime_Divide()
483 if (abs_r > k / 2 || (abs_r == k / 2 && (Py_ABS(x) & 1))) { in _PyTime_Divide()
Dmarshal.c239 n = Py_ABS(Py_SIZE(ob)); in w_PyLong()
828 size = 1 + (Py_ABS(n) - 1) / PyLong_MARSHAL_RATIO; in r_PyLong()
829 shorts_in_top_digit = 1 + (Py_ABS(n) - 1) % PyLong_MARSHAL_RATIO; in r_PyLong()
/external/python/cpython3/Doc/c-api/
Dintro.rst111 .. c:macro:: Py_ABS(x)