Home
last modified time | relevance | path

Searched refs:ob_digit (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Objects/
Dlongobject.c30 Py_SIZE(x) < 0 ? -(sdigit)(x)->ob_digit[0] : \
32 (sdigit)(x)->ob_digit[0]))
131 while (i > 0 && v->ob_digit[i-1] == 0) in long_normalize()
192 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
208 result = PyObject_MALLOC(offsetof(PyLongObject, ob_digit) + in _PyLong_New()
235 result->ob_digit[i] = src->ob_digit[i]; in _PyLong_Copy()
269 v->ob_digit[0] = Py_SAFE_DOWNCAST( in PyLong_FromLong()
281 v->ob_digit[0] = Py_SAFE_DOWNCAST( in PyLong_FromLong()
283 v->ob_digit[1] = Py_SAFE_DOWNCAST( in PyLong_FromLong()
298 digit *p = v->ob_digit; in PyLong_FromLong()
[all …]
Dlistobject.c2066 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.c52 while (i > 0 && v->ob_digit[i-1] == 0) in long_normalize()
63 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
93 result->ob_digit[i] = src->ob_digit[i]; in _PyLong_Copy()
131 digit *p = v->ob_digit; in PyLong_FromLong()
159 digit *p = v->ob_digit; in PyLong_FromUnsignedLong()
202 v->ob_digit[i] = bits; in PyLong_FromDouble()
281 res = -(sdigit)v->ob_digit[0]; in PyLong_AsLongAndOverflow()
287 res = v->ob_digit[0]; in PyLong_AsLongAndOverflow()
298 x = (x << PyLong_SHIFT) + v->ob_digit[i]; in PyLong_AsLongAndOverflow()
384 x = (x << PyLong_SHIFT) | v->ob_digit[i]; in PyLong_AsSsize_t()
[all …]
/external/python/cpython3/Include/
Dlongintrepr.h87 digit ob_digit[1]; member
/external/python/cpython2/Include/
Dlongintrepr.h92 digit ob_digit[1]; member
/external/python/cpython2/Python/
Dmarshal.c183 d = ob->ob_digit[n-1]; in w_PyLong()
197 d = ob->ob_digit[i]; in w_PyLong()
204 d = ob->ob_digit[n-1]; in w_PyLong()
611 ob->ob_digit[i] = d; in r_PyLong()
629 ob->ob_digit[size-1] = d; in r_PyLong()
/external/python/cpython3/Python/
Dmarshal.c241 d = ob->ob_digit[n-1]; in w_PyLong()
255 d = ob->ob_digit[i]; in w_PyLong()
262 d = ob->ob_digit[n-1]; in w_PyLong()
848 ob->ob_digit[i] = d; in r_PyLong()
875 ob->ob_digit[size-1] = d; in r_PyLong()
/external/python/cpython3/Modules/_decimal/
D_decimal.c2001 _dec_settriple(dec, sign, *l->ob_digit, 0); in dec_from_long()
2007 mpd_qimport_u32(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long()
2010 mpd_qimport_u16(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long()
3192 digit *ob_digit; in dec_as_long() local
3225 ob_digit = NULL; in dec_as_long()
3227 n = mpd_qexport_u32(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
3229 n = mpd_qexport_u16(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
3243 mpd_free(ob_digit); in dec_as_long()
3248 memcpy(pylong->ob_digit, ob_digit, n * sizeof(digit)); in dec_as_long()
3249 mpd_free(ob_digit); in dec_as_long()
[all …]
/external/python/cpython2/Tools/gdb/
Dlibpython.py803 ob_digit = self.field('ob_digit')
810 digits = [long(ob_digit[i]) * 2**(SHIFT*i)
/external/python/cpython3/Tools/gdb/
Dlibpython.py805 ob_digit = self.field('ob_digit')
812 digits = [long(ob_digit[i]) * 2**(SHIFT*i)