Searched refs:Py_ABS (Results 1 – 7 of 7) sorted by relevance
53 if (v && Py_ABS(Py_SIZE(v)) <= 1) { in maybe_small_long()106 Py_ssize_t j = Py_ABS(Py_SIZE(v)); in long_normalize()710 ndigits = Py_ABS(Py_SIZE(v)); in _PyLong_NumBits()1569 const Py_ssize_t size = Py_ABS(Py_SIZE(a)); in divrem1()1604 size_a = Py_ABS(Py_SIZE(a)); in long_to_decimal_string_internal()1807 size_a = Py_ABS(Py_SIZE(a)); in long_format_binary()2562 Py_ssize_t size_a = Py_ABS(Py_SIZE(a)), size_b = Py_ABS(Py_SIZE(b)); in long_divrem()2643 size_v = Py_ABS(Py_SIZE(v1)); in x_divrem()2644 size_w = Py_ABS(Py_SIZE(w1)); in x_divrem()2776 a_size = Py_ABS(Py_SIZE(a)); in _PyLong_Frexp()[all …]
2099 assert(Py_ABS(Py_SIZE(v)) <= 1); in unsafe_long_compare()2100 assert(Py_ABS(Py_SIZE(w)) <= 1); in unsafe_long_compare()2309 Py_ABS(Py_SIZE(key)) > 1) { in list_sort_impl()
1576 py_exponent = PyLong_FromLong(Py_ABS(exponent)); in float_as_integer_ratio_impl()
11 #define Py_ABS(x) ((x) < 0 ? -(x) : (x)) macro
488 abs_r = Py_ABS(r); in _PyTime_Divide()489 if (abs_r > k / 2 || (abs_r == k / 2 && (Py_ABS(x) & 1))) { in _PyTime_Divide()
239 n = Py_ABS(Py_SIZE(ob)); in w_PyLong()789 size = 1 + (Py_ABS(n) - 1) / PyLong_MARSHAL_RATIO; in r_PyLong()790 shorts_in_top_digit = 1 + (Py_ABS(n) - 1) % PyLong_MARSHAL_RATIO; in r_PyLong()
130 .. c:macro:: Py_ABS(x)