Home
last modified time | relevance | path

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

/third_party/python/Objects/
H A Dlongobject.c33 return ((stwodigits)Py_SIZE(x)) * x->ob_digit[0]; in medium_value()
130 while (i > 0 && v->ob_digit[i-1] == 0) in long_normalize()
142 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
156 /* Number of bytes needed is: offsetof(PyLongObject, ob_digit) + in _PyLong_New()
161 result = PyObject_Malloc(offsetof(PyLongObject, ob_digit) + in _PyLong_New()
191 result->ob_digit[i] = src->ob_digit[i]; in _PyLong_Copy()
211 v->ob_digit[0] = abs_x; in _PyLong_FromMedium()
242 digit *p = v->ob_digit; in _PyLong_FromLarge()
315 digit *p = v->ob_digit; in PyLong_FromLong()
[all...]
H A Dlistobject.c2174 v0 = Py_SIZE(vl) == 0 ? 0 : (sdigit)vl->ob_digit[0]; in unsafe_long_compare()
2175 w0 = Py_SIZE(wl) == 0 ? 0 : (sdigit)wl->ob_digit[0]; in unsafe_long_compare()
/third_party/python/Include/cpython/
H A Dlongintrepr.h66 SUM(for i=0 through abs(ob_size)-1) ob_digit[i] * 2**(SHIFT*i)
69 In a normalized number, ob_digit[abs(ob_size)-1] (the most significant
71 0 <= ob_digit[i] <= MASK.
73 so that ob_digit[0] ... ob_digit[abs(ob_size)-1] are actually available.
74 We always allocate memory for at least one digit, so accessing ob_digit[0]
76 ob_digit[0] may be undefined.
84 digit ob_digit[1]; member
/third_party/python/Modules/_decimal/
H A D_decimal.c2183 _dec_settriple(dec, sign, *l->ob_digit, 0); in dec_from_long()
2189 mpd_qimport_u32(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long()
2192 mpd_qimport_u16(MPD(dec), l->ob_digit, len, sign, PyLong_BASE, in dec_from_long()
3499 digit *ob_digit; in dec_as_long() local
3532 ob_digit = NULL; in dec_as_long()
3534 n = mpd_qexport_u32(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
3536 n = mpd_qexport_u16(&ob_digit, 0, PyLong_BASE, x, &status); in dec_as_long()
3548 sdigit val = mpd_arith_sign(x) * ob_digit[0]; in dec_as_long()
3549 mpd_free(ob_digit); in dec_as_long()
3557 mpd_free(ob_digit); in dec_as_long()
[all...]
/third_party/python/Python/
H A Dmarshal.c243 d = ob->ob_digit[n-1]; in w_PyLong()
257 d = ob->ob_digit[i]; in w_PyLong()
264 d = ob->ob_digit[n-1]; in w_PyLong()
860 ob->ob_digit[i] = d; in r_PyLong()
887 ob->ob_digit[size-1] = d; in r_PyLong()
H A Dbltinmodule.c2513 case -1: b = -(sdigit) ((PyLongObject*)item)->ob_digit[0]; break; in builtin_sum_impl()
2516 case 1: b = ((PyLongObject*)item)->ob_digit[0]; break; in builtin_sum_impl()
H A Dceval.c2176 assert(((PyLongObject *)_PyLong_GetZero())->ob_digit[0] == 0);
2177 Py_ssize_t index = ((PyLongObject*)sub)->ob_digit[0];
2201 assert(((PyLongObject *)_PyLong_GetZero())->ob_digit[0] == 0);
2202 Py_ssize_t index = ((PyLongObject*)sub)->ob_digit[0];
2343 Py_ssize_t index = ((PyLongObject*)sub)->ob_digit[0];
3789 Py_ssize_t ileft = Py_SIZE(left) * ((PyLongObject *)left)->ob_digit[0];
3790 Py_ssize_t iright = Py_SIZE(right) * ((PyLongObject *)right)->ob_digit[0];
H A Dspecialize.c1272 && ((PyLongObject *)sub)->ob_digit[0] < (size_t)PyList_GET_SIZE(container)) in _Py_Specialize_StoreSubscr()
/third_party/python/Include/internal/
H A Dpycore_runtime_init.h82 .ob_digit = { ((val) >= 0 ? (val) : -(val)) }, \
/third_party/python/Tools/gdb/
H A Dlibpython.py876 digit ob_digit[1];
881 SUM(for i=0 through abs(ob_size)-1) ob_digit[i] * 2**(SHIFT*i)
893 ob_digit = self.field('ob_digit')
900 digits = [int(ob_digit[i]) * 2**(SHIFT*i)

Completed in 40 milliseconds