Home
last modified time | relevance | path

Searched refs:PyLong_AsSsize_t (Results 1 – 25 of 44) sorted by relevance

12

/external/python/cpython2/Include/
Dlongobject.h27 PyAPI_FUNC(Py_ssize_t) PyLong_AsSsize_t(PyObject *);
32 #define _PyLong_AsSsize_t PyLong_AsSsize_t
/external/python/cpython3/Objects/
Dstructseq.c19 #define VISIBLE_SIZE_TP(tp) PyLong_AsSsize_t( \
22 #define REAL_SIZE_TP(tp) PyLong_AsSsize_t( \
26 #define UNNAMED_FIELDS_TP(tp) PyLong_AsSsize_t( \
Dsliceobject.c173 *step = PyLong_AsSsize_t(r->step); in PySlice_GetIndices()
179 *start = PyLong_AsSsize_t(r->start); in PySlice_GetIndices()
186 *stop = PyLong_AsSsize_t(r->stop); in PySlice_GetIndices()
Denumobject.c55 en->en_index = PyLong_AsSsize_t(start); in enum_new_impl()
379 Py_ssize_t index = PyLong_AsSsize_t(state); in reversed_setstate()
Diterobject.c118 Py_ssize_t index = PyLong_AsSsize_t(state); in iter_setstate()
Dtupleobject.c1015 Py_ssize_t index = PyLong_AsSsize_t(state); in tupleiter_setstate()
Drangeobject.c215 return PyLong_AsSsize_t(r->length); in range_length()
Dabstract.c130 res = PyLong_AsSsize_t(result); in PyObject_LengthHint()
1306 result = PyLong_AsSsize_t(value); in PyNumber_AsSsize_t()
/external/python/cpython2/Modules/_io/
D_iomodule.h115 # define PyLong_AsOff_t PyLong_AsSsize_t
/external/python/cpython3/Modules/_io/
D_iomodule.h106 # define PyLong_AsOff_t PyLong_AsSsize_t
Dbytesio.c472 maxsize = PyLong_AsSsize_t(arg); in _io_BytesIO_readlines_impl()
828 pos = PyLong_AsSsize_t(position_obj); in bytesio_setstate()
Dstringio.c909 pos = PyLong_AsSsize_t(position_obj); in stringio_setstate()
/external/python/cpython3/Include/
Dlongobject.h25 PyAPI_FUNC(Py_ssize_t) PyLong_AsSsize_t(PyObject *);
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c334 newpos = PyLong_AsSsize_t(PyTuple_GET_ITEM(retobj, 1)); in multibytecodec_encerror()
441 newpos = PyLong_AsSsize_t(PyTuple_GET_ITEM(retobj, 1)); in multibytecodec_decerror()
1383 size = PyLong_AsSsize_t(sizeobj); in _multibytecodec_MultibyteStreamReader_read_impl()
1412 size = PyLong_AsSsize_t(sizeobj); in _multibytecodec_MultibyteStreamReader_readline_impl()
1442 sizehint = PyLong_AsSsize_t(sizehintobj); in _multibytecodec_MultibyteStreamReader_readlines_impl()
/external/python/cpython3/Python/
Dstructmember.c226 *(Py_ssize_t*)addr = PyLong_AsSsize_t(v); in PyMember_SetOne()
D_warnings.c222 ln = PyLong_AsSsize_t(ln_obj); in get_filter()
/external/python/cpython3/Modules/_decimal/
D_decimal.c781 x = PyLong_AsSsize_t(value); in context_setprec()
801 x = PyLong_AsSsize_t(value); in context_setemin()
821 x = PyLong_AsSsize_t(value); in context_setemax()
842 x = PyLong_AsSsize_t(value); in context_unsafe_setprec()
862 x = PyLong_AsSsize_t(value); in context_unsafe_setemin()
882 x = PyLong_AsSsize_t(value); in context_unsafe_setemax()
921 x = PyLong_AsSsize_t(value); in context_setcapitals()
1069 x = PyLong_AsSsize_t(value); in context_setclamp()
1090 x = PyLong_AsSsize_t(value); in context_setallcr()
1370 bits = PyLong_AsSsize_t(v); in ieee_context()
[all …]
/external/python/cpython3/Modules/
Ditertoolsmodule.c1596 Py_ssize_t cnt = PyLong_AsSsize_t(state); in islice_setstate()
2288 Py_ssize_t index = PyLong_AsSsize_t(indexObject); in product_setstate()
2615 Py_ssize_t index = PyLong_AsSsize_t(indexObject); in combinations_setstate()
2948 Py_ssize_t index = PyLong_AsSsize_t(indexObject); in cwr_setstate()
3099 r = PyLong_AsSsize_t(robj); in permutations_new()
3330 Py_ssize_t index = PyLong_AsSsize_t(indexObject); in permutations_setstate()
3343 Py_ssize_t index = PyLong_AsSsize_t(indexObject); in permutations_setstate()
3986 cnt = PyLong_AsSsize_t(long_cnt); in count_new()
D_testbuffer.c794 itemsize = PyLong_AsSsize_t(tmp); in get_itemsize()
869 x = PyLong_AsSsize_t(tmp); in seq_as_ssize_array()
1800 Py_ssize_t index = PyLong_AsSsize_t(key); in ndarray_subscript()
1895 index = PyLong_AsSsize_t(key); in ndarray_ass_subscript()
2335 indices[i] = PyLong_AsSsize_t(x); in get_pointer()
Dzlibmodule.c298 val = PyLong_AsSsize_t(long_obj); in ssize_t_converter()
/external/python/cpython2/Doc/c-api/
Dlong.rst162 .. c:function:: Py_ssize_t PyLong_AsSsize_t(PyObject *pylong)
/external/python/cpython3/PC/
Dpython3.def322 PyLong_AsSsize_t=python37.PyLong_AsSsize_t
/external/python/cpython3/Doc/c-api/
Dlong.rst188 .. c:function:: Py_ssize_t PyLong_AsSsize_t(PyObject *pylong)
/external/python/cpython2/Doc/data/
Drefcounts.dat641 PyLong_AsSsize_t:ssize_t:::
642 PyLong_AsSsize_t:PyObject*:pylong:0:
/external/python/cpython2/Objects/
Dlongobject.c364 PyLong_AsSsize_t(PyObject *vv) { in PyLong_AsSsize_t() function
3661 shiftby = PyLong_AsSsize_t((PyObject *)b); in long_rshift()
3711 shiftby = PyLong_AsSsize_t((PyObject *)b); in long_lshift()

12