Home
last modified time | relevance | path

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

/third_party/python/Objects/
Dlongobject.c31 Py_SIZE(x) < 0 ? -(sdigit)(x)->ob_digit[0] : \
33 (sdigit)(x)->ob_digit[0]))
106 while (i > 0 && v->ob_digit[i-1] == 0) in long_normalize()
118 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
134 result = PyObject_Malloc(offsetof(PyLongObject, ob_digit) + in _PyLong_New()
164 result->ob_digit[i] = src->ob_digit[i]; in _PyLong_Copy()
201 v->ob_digit[0] = Py_SAFE_DOWNCAST( in PyLong_FromLong()
213 v->ob_digit[0] = Py_SAFE_DOWNCAST( in PyLong_FromLong()
215 v->ob_digit[1] = Py_SAFE_DOWNCAST( in PyLong_FromLong()
230 digit *p = v->ob_digit; in PyLong_FromLong()
[all …]
Dlistobject.c2105 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()
/third_party/python/Include/
Dlongintrepr.h87 digit ob_digit[1]; member
/third_party/python/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()
809 ob->ob_digit[i] = d; in r_PyLong()
836 ob->ob_digit[size-1] = d; in r_PyLong()
/third_party/python/Modules/_decimal/
D_decimal.c2145 _dec_settriple(dec, sign, *l->ob_digit, 0); in dec_from_long()
2151 mpd_qimport_u32(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long()
2154 mpd_qimport_u16(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long()
3349 digit *ob_digit; in dec_as_long() local
3382 ob_digit = NULL; in dec_as_long()
3384 n = mpd_qexport_u32(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
3386 n = mpd_qexport_u16(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
3400 mpd_free(ob_digit); in dec_as_long()
3405 memcpy(pylong->ob_digit, ob_digit, n * sizeof(digit)); in dec_as_long()
3406 mpd_free(ob_digit); in dec_as_long()
[all …]
/third_party/python/Tools/gdb/
Dlibpython.py816 ob_digit = self.field('ob_digit')
823 digits = [long(ob_digit[i]) * 2**(SHIFT*i)