Home
last modified time | relevance | path

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

12

/external/python/cpython3/Objects/
Dlongobject.c43 static PyLongObject small_ints[NSMALLNEGINTS + NSMALLPOSINTS];
68 static PyLongObject *
69 maybe_small_long(PyLongObject *v) in maybe_small_long()
75 return (PyLongObject *)get_small_int(ival); in maybe_small_long()
88 _PyLong_Negate(PyLongObject **x_p) in _PyLong_Negate()
90 PyLongObject *x; in _PyLong_Negate()
92 x = (PyLongObject *)*x_p; in _PyLong_Negate()
98 *x_p = (PyLongObject *)PyLong_FromLong(-MEDIUM_VALUE(x)); in _PyLong_Negate()
125 static PyLongObject *
126 long_normalize(PyLongObject *v) in long_normalize()
[all …]
Dabstract.c1362 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1374 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1390 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
Dlistobject.c2055 PyLongObject *vl, *wl; sdigit v0, w0; int res; in unsafe_long_compare()
2063 vl = (PyLongObject*)v; in unsafe_long_compare()
2064 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 …]
Dabstract.c1739 return _PyLong_Copy((PyLongObject *)o);
/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.
52 Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long`, or
58 Return a new :c:type:`PyLongObject` object from a C :c:type:`Py_ssize_t`, or
64 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 …]
/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/cpython3/Include/
Dlongobject.h10 typedef struct _longobject PyLongObject; /* Revealed in longintrepr.h */ typedef
81 PyAPI_FUNC(double) _PyLong_Frexp(PyLongObject *a, Py_ssize_t *e);
163 PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
172 PyAPI_FUNC(PyLongObject *)_PyLong_FromNbInt(PyObject *);
Dlongintrepr.h90 PyAPI_FUNC(PyLongObject *) _PyLong_New(Py_ssize_t);
93 PyAPI_FUNC(PyObject *) _PyLong_Copy(PyLongObject *src);
/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/Modules/_sqlite/
Dutil.c137 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/Python/
Dmarshal.c227 w_PyLong(const PyLongObject *ob, char flag, WFILE *p) in w_PyLong()
357 PyLongObject *ob = (PyLongObject *)v; in w_complex_object()
366 w_PyLong((PyLongObject*)v, flag, p); in w_complex_object()
812 PyLongObject *ob; in r_PyLong()
/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/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/Modules/
D_struct.c915 res = _PyLong_AsByteArray((PyLongObject *)v, in bp_longlong()
931 res = _PyLong_AsByteArray((PyLongObject *)v, in bp_ulonglong()
1130 res = _PyLong_AsByteArray((PyLongObject*)v, in lp_longlong()
1146 res = _PyLong_AsByteArray((PyLongObject*)v, in lp_ulonglong()
D_randommodule.c290 res = _PyLong_AsByteArray((PyLongObject *)n, in random_seed()
Dmathmodule.c1908 x = _PyLong_Frexp((PyLongObject *)arg, &e); in loghelper()
D_tkinter.c1006 if (_PyLong_AsByteArray((PyLongObject *)value, in AsObj()
/external/python/cpython2/Modules/_io/
Dtextio.c1932 PyLongObject *cookieLong = (PyLongObject *)PyNumber_Long(cookieObj); in textiowrapper_parse_cookie()
/external/python/cpython3/Modules/_io/
Dtextio.c2236 PyLongObject *cookieLong = (PyLongObject *)PyNumber_Long(cookieObj); in textiowrapper_parse_cookie()
/external/python/cpython3/Modules/_decimal/
D_decimal.c1975 PyLongObject *l = (PyLongObject *)v; in dec_from_long()
3191 PyLongObject *pylong; in dec_as_long()

12