Home
last modified time | relevance | path

Searched refs:sdigit (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Include/
Dlongintrepr.h46 typedef int32_t sdigit; /* signed variant of digit */ typedef
54 typedef short sdigit; /* signed variant of digit */
/external/python/cpython2/Include/
Dlongintrepr.h46 typedef PY_INT32_T sdigit; /* signed variant of digit */ typedef
54 typedef short sdigit; /* signed variant of digit */
/external/python/cpython3/Misc/
Dcoverity_model.c23 typedef int sdigit; typedef
41 static PyObject *get_small_int(sdigit ival) in get_small_int()
/external/python/cpython3/Objects/
Dlongobject.c30 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 …]
Dlistobject.c2055 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()
/external/python/cpython2/Objects/
Dlongobject.c281 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()