Home
last modified time | relevance | path

Searched refs:PyLongObject (Results 1 – 21 of 21) sorted by relevance

/third_party/python/Objects/
Dlongobject.c50 static PyLongObject *
51 maybe_small_long(PyLongObject *v) in maybe_small_long()
57 return (PyLongObject *)get_small_int(ival); in maybe_small_long()
66 _PyLong_Negate(PyLongObject **x_p) in _PyLong_Negate()
68 PyLongObject *x; in _PyLong_Negate()
70 x = (PyLongObject *)*x_p; in _PyLong_Negate()
76 *x_p = (PyLongObject *)PyLong_FromLong(-MEDIUM_VALUE(x)); in _PyLong_Negate()
103 static PyLongObject *
104 long_normalize(PyLongObject *v) in long_normalize()
121 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
[all …]
Dabstract.c1470 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Index()
1571 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1585 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
Dlistobject.c2094 PyLongObject *vl, *wl; sdigit v0, w0; int res; in unsafe_long_compare()
2102 vl = (PyLongObject*)v; in unsafe_long_compare()
2103 wl = (PyLongObject*)w; in unsafe_long_compare()
/third_party/python/Doc/c-api/
Dlong.rst16 .. c:type:: PyLongObject
29 Return true if its argument is a :c:type:`PyLongObject` or a subtype of
30 :c:type:`PyLongObject`. This function always succeeds.
35 Return true if its argument is a :c:type:`PyLongObject`, but not a subtype of
36 :c:type:`PyLongObject`. This function always succeeds.
41 Return a new :c:type:`PyLongObject` object from *v*, or ``NULL`` on failure.
50 Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long`, or
56 Return a new :c:type:`PyLongObject` object from a C :c:type:`Py_ssize_t`, or
62 Return a new :c:type:`PyLongObject` object from a C :c:type:`size_t`, or
68 Return a new :c:type:`PyLongObject` object from a C :c:type:`long long`, or ``NULL``
[all …]
/third_party/python/Include/
Dlongintrepr.h90 PyAPI_FUNC(PyLongObject *) _PyLong_New(Py_ssize_t);
93 PyAPI_FUNC(PyObject *) _PyLong_Copy(PyLongObject *src);
Dlongobject.h10 typedef struct _longobject PyLongObject; /* Revealed in longintrepr.h */ typedef
89 PyAPI_FUNC(double) _PyLong_Frexp(PyLongObject *a, Py_ssize_t *e);
170 PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
/third_party/python/Modules/cjkcodecs/clinic/
Dmultibytecodec.c.h212 PyLongObject *statelong);
218 PyLongObject *statelong; in _multibytecodec_MultibyteIncrementalEncoder_setstate()
224 statelong = (PyLongObject *)arg; in _multibytecodec_MultibyteIncrementalEncoder_setstate()
/third_party/python/Modules/_sqlite/
Dutil.c115 if (_PyLong_AsByteArray((PyLongObject *)py_val, in _pysqlite_long_as_int64()
/third_party/python/Include/internal/
Dpycore_interp.h290 PyLongObject* small_ints[_PY_NSMALLNEGINTS + _PY_NSMALLPOSINTS];
/third_party/python/Python/
Dmarshal.c227 w_PyLong(const PyLongObject *ob, char flag, WFILE *p) in w_PyLong()
381 w_PyLong((PyLongObject *)v, flag, p); in w_complex_object()
388 w_PyLong((PyLongObject*)v, flag, p); in w_complex_object()
773 PyLongObject *ob; in r_PyLong()
/third_party/python/Modules/
D_struct.c937 res = _PyLong_AsByteArray((PyLongObject *)v, in bp_longlong()
953 res = _PyLong_AsByteArray((PyLongObject *)v, in bp_ulonglong()
1152 res = _PyLong_AsByteArray((PyLongObject*)v, in lp_longlong()
1168 res = _PyLong_AsByteArray((PyLongObject*)v, in lp_ulonglong()
D_randommodule.c321 res = _PyLong_AsByteArray((PyLongObject *)n, in random_seed()
Dmathmodule.c2291 x = _PyLong_Frexp((PyLongObject *)arg, &e); in loghelper()
D_tkinter.c1094 if (_PyLong_AsByteArray((PyLongObject *)value, in AsObj()
D_pickle.c2172 i = _PyLong_AsByteArray((PyLongObject *)obj, in save_long()
/third_party/python/Modules/cjkcodecs/
Dmultibytecodec.c966 PyLongObject *statelong) in _multibytecodec_MultibyteIncrementalEncoder_setstate_impl()
1244 PyLongObject *statelong; in _multibytecodec_MultibyteIncrementalDecoder_setstate_impl()
/third_party/python/Doc/data/
Dstable_abi.dat335 type,PyLongObject,3.2,
/third_party/python/Modules/_io/
Dtextio.c2362 PyLongObject *cookieLong = (PyLongObject *)PyNumber_Long(cookieObj); in textiowrapper_parse_cookie()
/third_party/python/Modules/_decimal/
D_decimal.c2119 PyLongObject *l = (PyLongObject *)v; in dec_from_long()
3348 PyLongObject *pylong; in dec_as_long()
/third_party/python/Misc/
Dstable_abi.txt47 struct PyLongObject
/third_party/python/Tools/c-analyzer/
DTODO157 Objects/longobject.c:small_ints static PyLongObject small_ints[NSM…