Searched refs:Py_ABS (Results 1 – 5 of 5) sorted by relevance
59 if (v && Py_ABS(Py_SIZE(v)) <= 1) { in maybe_small_long()116 Py_ssize_t j = Py_ABS(Py_SIZE(v)); in long_normalize()721 ndigits = Py_ABS(Py_SIZE(v)); in _PyLong_NumBits()1558 const Py_ssize_t size = Py_ABS(Py_SIZE(a)); in divrem1()1593 size_a = Py_ABS(Py_SIZE(a)); in long_to_decimal_string_internal()1785 size_a = Py_ABS(Py_SIZE(a)); in long_format_binary()2535 Py_ssize_t size_a = Py_ABS(Py_SIZE(a)), size_b = Py_ABS(Py_SIZE(b)); in long_divrem()2617 size_v = Py_ABS(Py_SIZE(v1)); in x_divrem()2618 size_w = Py_ABS(Py_SIZE(w1)); in x_divrem()2749 a_size = Py_ABS(Py_SIZE(a)); in _PyLong_Frexp()[all …]
1517 py_exponent = PyLong_FromLong(Py_ABS(exponent)); in float_as_integer_ratio()
11 #define Py_ABS(x) ((x) < 0 ? -(x) : (x)) macro
374 abs_r = Py_ABS(r); in _PyTime_Divide()375 if (abs_r > k / 2 || (abs_r == k / 2 && (Py_ABS(x) & 1))) { in _PyTime_Divide()
223 n = Py_ABS(Py_SIZE(ob)); in w_PyLong()799 size = 1 + (Py_ABS(n) - 1) / PyLong_MARSHAL_RATIO; in r_PyLong()800 shorts_in_top_digit = 1 + (Py_ABS(n) - 1) % PyLong_MARSHAL_RATIO; in r_PyLong()