Searched refs:sdigit (Results 1 – 6 of 6) sorted by relevance
46 typedef int32_t sdigit; /* signed variant of digit */ typedef54 typedef short sdigit; /* signed variant of digit */
46 typedef PY_INT32_T sdigit; /* signed variant of digit */ typedef54 typedef short sdigit; /* signed variant of digit */
23 typedef int sdigit; typedef41 static PyObject *get_small_int(sdigit ival) in get_small_int()
30 Py_SIZE(x) < 0 ? -(sdigit)(x)->ob_digit[0] : \31 (Py_SIZE(x) == 0 ? (sdigit)0 : \32 (sdigit)(x)->ob_digit[0]))49 get_small_int(sdigit ival) in get_small_int()65 return get_small_int((sdigit)ival); \72 sdigit ival = MEDIUM_VALUE(v); in maybe_small_long()228 sdigit ival = MEDIUM_VALUE(src); in _PyLong_Copy()434 res = -(sdigit)v->ob_digit[0]; in PyLong_AsLongAndOverflow()535 case -1: return -(sdigit)v->ob_digit[0]; in PyLong_AsSsize_t()1241 bytes = -(sdigit)v->ob_digit[0]; in PyLong_AsLongLong()[all …]
2055 PyLongObject *vl, *wl; sdigit v0, w0; int res; in unsafe_long_compare()2066 v0 = Py_SIZE(vl) == 0 ? 0 : (sdigit)vl->ob_digit[0]; in unsafe_long_compare()2067 w0 = Py_SIZE(wl) == 0 ? 0 : (sdigit)wl->ob_digit[0]; in unsafe_long_compare()
281 res = -(sdigit)v->ob_digit[0]; in PyLong_AsLongAndOverflow()1099 res = -(sdigit)v->ob_digit[0]; in PyLong_AsLongLongAndOverflow()2085 sdigit zhi; in x_divrem()2168 z = (sdigit)vk[i] + zhi - in x_divrem()2171 zhi = (sdigit)Py_ARITHMETIC_RIGHT_SHIFT(stwodigits, in x_divrem()2176 assert((sdigit)vtop + zhi == -1 || (sdigit)vtop + zhi == 0); in x_divrem()2177 if ((sdigit)vtop + zhi < 0) { in x_divrem()2383 sign = (sdigit)a->ob_digit[i] - (sdigit)b->ob_digit[i]; in long_compare()