Home
last modified time | relevance | path

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

/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.c1742 return _PyLong_Copy((PyLongObject *)o);
/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/cpython2/Modules/_sqlite/
Dutil.c163 if (_PyLong_AsByteArray((PyLongObject *)py_val, in _pysqlite_long_as_int64()
/external/python/cpython2/Python/
Dmarshal.c169 w_PyLong(const PyLongObject *ob, WFILE *p) in w_PyLong()
255 PyLongObject *ob = (PyLongObject *)v; in w_object()
576 PyLongObject *ob; in r_PyLong()
/external/python/cpython2/Modules/
D_struct.c863 res = _PyLong_AsByteArray((PyLongObject *)v, in bp_longlong()
879 res = _PyLong_AsByteArray((PyLongObject *)v, in bp_ulonglong()
1083 res = _PyLong_AsByteArray((PyLongObject*)v, in lp_longlong()
1099 res = _PyLong_AsByteArray((PyLongObject*)v, in lp_ulonglong()
Dmathmodule.c1296 x = _PyLong_Frexp((PyLongObject *)arg, &e); in loghelper()
D_tkinter.c1115 if (_PyLong_AsByteArray((PyLongObject *)value, in AsObj()
DcPickle.c1125 i = _PyLong_AsByteArray((PyLongObject *)args, in save_long()
/external/python/cpython2/Modules/_io/
Dtextio.c1927 PyLongObject *cookieLong = (PyLongObject *)PyNumber_Long(cookieObj); in textiowrapper_parse_cookie()