Searched refs:sdigit (Results 1 – 4 of 4) sorted by relevance
46 typedef 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()
32 Py_SIZE(x) < 0 ? -(sdigit)(x)->ob_digit[0] : \33 (Py_SIZE(x) == 0 ? (sdigit)0 : \34 (sdigit)(x)->ob_digit[0]))42 get_small_int(sdigit ival) in get_small_int()54 sdigit ival = MEDIUM_VALUE(v); in maybe_small_long()158 sdigit ival = MEDIUM_VALUE(src); in _PyLong_Copy()185 return get_small_int((sdigit)ival); in PyLong_FromLong()248 return get_small_int((sdigit)(ival)); \404 res = -(sdigit)v->ob_digit[0]; in PyLong_AsLongAndOverflow()505 case -1: return -(sdigit)v->ob_digit[0]; in PyLong_AsSsize_t()[all …]
2094 PyLongObject *vl, *wl; sdigit v0, w0; int res; in unsafe_long_compare()2105 v0 = Py_SIZE(vl) == 0 ? 0 : (sdigit)vl->ob_digit[0]; in unsafe_long_compare()2106 w0 = Py_SIZE(wl) == 0 ? 0 : (sdigit)wl->ob_digit[0]; in unsafe_long_compare()