Home
last modified time | relevance | path

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

/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/Objects/
Dlongobject.c28 Py_SIZE(x) < 0 ? -(sdigit)(x)->ob_digit[0] : \
30 (sdigit)(x)->ob_digit[0]))
114 while (i > 0 && v->ob_digit[i-1] == 0) in long_normalize()
243 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
259 result = PyObject_MALLOC(offsetof(PyLongObject, ob_digit) + in _PyLong_New()
288 result->ob_digit[i] = src->ob_digit[i]; in _PyLong_Copy()
325 v->ob_digit[0] = Py_SAFE_DOWNCAST( in PyLong_FromLong()
337 v->ob_digit[0] = Py_SAFE_DOWNCAST( in PyLong_FromLong()
339 v->ob_digit[1] = Py_SAFE_DOWNCAST( in PyLong_FromLong()
354 digit *p = v->ob_digit; in PyLong_FromLong()
[all …]
Dlistobject.c2086 v0 = Py_SIZE(vl) == 0 ? 0 : (sdigit)vl->ob_digit[0]; in unsafe_long_compare()
2087 w0 = Py_SIZE(wl) == 0 ? 0 : (sdigit)wl->ob_digit[0]; in unsafe_long_compare()
/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()
805 ob->ob_digit[i] = d; in r_PyLong()
832 ob->ob_digit[size-1] = d; in r_PyLong()
/external/python/cpython3/Modules/_decimal/
D_decimal.c2146 _dec_settriple(dec, sign, *l->ob_digit, 0); in dec_from_long()
2152 mpd_qimport_u32(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long()
2155 mpd_qimport_u16(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long()
3337 digit *ob_digit; in dec_as_long() local
3370 ob_digit = NULL; in dec_as_long()
3372 n = mpd_qexport_u32(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
3374 n = mpd_qexport_u16(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
3388 mpd_free(ob_digit); in dec_as_long()
3393 memcpy(pylong->ob_digit, ob_digit, n * sizeof(digit)); in dec_as_long()
3394 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.py807 ob_digit = self.field('ob_digit')
814 digits = [long(ob_digit[i]) * 2**(SHIFT*i)