Home
last modified time | relevance | path

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

12

/external/python/cpython3/Objects/
Dlongobject.c49 static PyLongObject *
50 maybe_small_long(PyLongObject *v) in maybe_small_long()
56 return (PyLongObject *)get_small_int(ival); in maybe_small_long()
71 _PyLong_Negate(PyLongObject **x_p) in _PyLong_Negate()
73 PyLongObject *x; in _PyLong_Negate()
75 x = (PyLongObject *)*x_p; in _PyLong_Negate()
81 *x_p = (PyLongObject *)PyLong_FromLong(-MEDIUM_VALUE(x)); in _PyLong_Negate()
108 static PyLongObject *
109 long_normalize(PyLongObject *v) in long_normalize()
243 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
[all …]
Dabstract.c1431 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1438 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1450 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1466 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
Dlistobject.c2075 PyLongObject *vl, *wl; sdigit v0, w0; int res; in unsafe_long_compare()
2083 vl = (PyLongObject*)v; in unsafe_long_compare()
2084 wl = (PyLongObject*)w; in unsafe_long_compare()
/external/python/cpython2/Objects/
Dlongobject.c46 static PyLongObject *
47 long_normalize(register PyLongObject *v) in long_normalize()
63 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
65 PyLongObject *
76 return PyObject_NEW_VAR(PyLongObject, &PyLong_Type, size); in _PyLong_New()
80 _PyLong_Copy(PyLongObject *src) in _PyLong_Copy()
82 PyLongObject *result; in _PyLong_Copy()
103 PyLongObject *v; in PyLong_FromLong()
147 PyLongObject *v; in PyLong_FromUnsignedLong()
174 PyLongObject *v; in PyLong_FromDouble()
[all …]
/external/python/cpython3/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`.
35 Return true if its argument is a :c:type:`PyLongObject`, but not a subtype of
36 :c:type:`PyLongObject`.
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 …]
/external/python/cpython2/Doc/c-api/
Dlong.rst11 .. c:type:: PyLongObject
26 Return true if its argument is a :c:type:`PyLongObject` or a subtype of
27 :c:type:`PyLongObject`.
35 Return true if its argument is a :c:type:`PyLongObject`, but not a subtype of
36 :c:type:`PyLongObject`.
43 Return a new :c:type:`PyLongObject` object from *v*, or *NULL* on failure.
48 Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long`, or
54 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
70 Return a new :c:type:`PyLongObject` object from a C :c:type:`long long`, or *NULL*
[all …]
Dint.rst43 Return a new :c:type:`PyIntObject` or :c:type:`PyLongObject` based on the string
53 and overflow warnings are being suppressed, a :c:type:`PyLongObject` will be
102 :c:type:`PyLongObject`, if it is not already one, and then return its value as
111 :c:type:`PyLongObject`, if it is not already one, and then return its value as
120 :c:type:`PyLongObject`, if it is not already one, and then return its value as
/external/python/cpython2/Include/
Dlongobject.h10 typedef struct _longobject PyLongObject; /* Revealed in longintrepr.h */ typedef
43 PyAPI_FUNC(double) _PyLong_Frexp(PyLongObject *a, Py_ssize_t *e);
115 PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
Dlongintrepr.h95 PyAPI_FUNC(PyLongObject *) _PyLong_New(Py_ssize_t);
98 PyAPI_FUNC(PyObject *) _PyLong_Copy(PyLongObject *src);
/external/python/cpython3/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);
172 PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
/external/python/cpython3/Modules/cjkcodecs/clinic/
Dmultibytecodec.c.h217 PyLongObject *statelong);
223 PyLongObject *statelong; in _multibytecodec_MultibyteIncrementalEncoder_setstate()
229 statelong = (PyLongObject *)arg; in _multibytecodec_MultibyteIncrementalEncoder_setstate()
/external/python/cpython3/Modules/_sqlite/
Dutil.c121 if (_PyLong_AsByteArray((PyLongObject *)py_val, in _pysqlite_long_as_int64()
/external/python/cpython2/Modules/_sqlite/
Dutil.c163 if (_PyLong_AsByteArray((PyLongObject *)py_val, in _pysqlite_long_as_int64()
/external/python/cpython3/Include/internal/
Dpycore_interp.h155 PyLongObject* small_ints[_PY_NSMALLNEGINTS + _PY_NSMALLPOSINTS];
/external/python/cpython2/Python/
Dmarshal.c169 w_PyLong(const PyLongObject *ob, WFILE *p) in w_PyLong()
255 PyLongObject *ob = (PyLongObject *)v; in w_object()
582 PyLongObject *ob; in r_PyLong()
/external/python/cpython3/Modules/
Dmathmodule.c2309 x = _PyLong_Frexp((PyLongObject *)arg, &e); in loghelper()
3140 Py_SETREF(n, _PyLong_Copy((PyLongObject *)n)); in math_perm_impl()
3151 Py_SETREF(k, _PyLong_Copy((PyLongObject *)k)); in math_perm_impl()
3263 Py_SETREF(n, _PyLong_Copy((PyLongObject *)n)); in math_comb_impl()
3274 Py_SETREF(k, _PyLong_Copy((PyLongObject *)k)); in math_comb_impl()
D_struct.c926 res = _PyLong_AsByteArray((PyLongObject *)v, in bp_longlong()
942 res = _PyLong_AsByteArray((PyLongObject *)v, in bp_ulonglong()
1141 res = _PyLong_AsByteArray((PyLongObject*)v, in lp_longlong()
1157 res = _PyLong_AsByteArray((PyLongObject*)v, in lp_ulonglong()
D_randommodule.c319 res = _PyLong_AsByteArray((PyLongObject *)n, in random_seed()
/external/python/cpython2/Modules/
D_struct.c865 res = _PyLong_AsByteArray((PyLongObject *)v, in bp_longlong()
881 res = _PyLong_AsByteArray((PyLongObject *)v, in bp_ulonglong()
1087 res = _PyLong_AsByteArray((PyLongObject*)v, in lp_longlong()
1103 res = _PyLong_AsByteArray((PyLongObject*)v, in lp_ulonglong()
Dmathmodule.c1296 x = _PyLong_Frexp((PyLongObject *)arg, &e); in loghelper()
/external/python/cpython3/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()
769 PyLongObject *ob; in r_PyLong()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c944 PyLongObject *statelong) in _multibytecodec_MultibyteIncrementalEncoder_setstate_impl()
1247 PyLongObject *statelong; in _multibytecodec_MultibyteIncrementalDecoder_setstate_impl()
/external/python/cpython2/Modules/_io/
Dtextio.c1932 PyLongObject *cookieLong = (PyLongObject *)PyNumber_Long(cookieObj); in textiowrapper_parse_cookie()
/external/python/cpython3/Modules/_io/
Dtextio.c2352 PyLongObject *cookieLong = (PyLongObject *)PyNumber_Long(cookieObj); in textiowrapper_parse_cookie()

12