Home
last modified time | relevance | path

Searched refs:PyLong_FromSsize_t (Results 1 – 25 of 100) sorted by relevance

1234

/external/python/cpython2/Include/
Dlongobject.h22 PyAPI_FUNC(PyObject *) PyLong_FromSsize_t(Py_ssize_t);
34 #define _PyLong_FromSsize_t PyLong_FromSsize_t
/external/python/cpython2/Modules/_io/
Dbytesio.c218 return PyLong_FromSsize_t(self->pos); in bytesio_tell()
426 return PyLong_FromSsize_t(len); in bytesio_readinto()
473 return PyLong_FromSsize_t(size); in bytesio_truncate()
552 return PyLong_FromSsize_t(self->pos); in bytesio_seek()
575 result = PyLong_FromSsize_t(n); in bytesio_write()
816 return PyLong_FromSsize_t(res); in bytesio_sizeof()
Dstringio.c204 return PyLong_FromSsize_t(self->pos); in stringio_tell()
394 return PyLong_FromSsize_t(size); in stringio_truncate()
451 return PyLong_FromSsize_t(self->pos); in stringio_seek()
477 return PyLong_FromSsize_t(size); in stringio_write()
D_iomodule.h116 # define PyLong_FromOff_t PyLong_FromSsize_t
/external/python/cpython3/Objects/
Dbytes_methods.c595 return PyLong_FromSsize_t(result); in _Py_bytes_find()
618 return PyLong_FromSsize_t(result); in _Py_bytes_index()
636 return PyLong_FromSsize_t(result); in _Py_bytes_rfind()
659 return PyLong_FromSsize_t(result); in _Py_bytes_rindex()
699 count_obj = PyLong_FromSsize_t( in _Py_bytes_count()
Denumobject.c110 en->en_longindex = PyLong_FromSsize_t(PY_SSIZE_T_MAX); in enum_next_long()
163 next_index = PyLong_FromSsize_t(en->en_index); in enum_next()
362 return PyLong_FromSsize_t((seqsize < position) ? 0 : position); in reversed_len()
Dsliceobject.c148 start = PyLong_FromSsize_t(istart); in _PySlice_FromIndices()
151 end = PyLong_FromSsize_t(istop); in _PySlice_FromIndices()
Dtupleobject.c560 return PyLong_FromSsize_t(i); in tuple_index_impl()
591 return PyLong_FromSsize_t(count); in tuple_count()
997 return PyLong_FromSsize_t(len); in tupleiter_len()
/external/python/cpython3/Modules/_io/
Dbytesio.c352 return PyLong_FromSsize_t(self->pos); in _io_BytesIO_tell_impl()
547 return PyLong_FromSsize_t(len); in _io_BytesIO_readinto_impl()
580 return PyLong_FromSsize_t(size); in _io_BytesIO_truncate_impl()
654 return PyLong_FromSsize_t(self->pos); in _io_BytesIO_seek_impl()
684 return n >= 0 ? PyLong_FromSsize_t(n) : NULL; in _io_BytesIO_write()
947 return PyLong_FromSsize_t(res); in bytesio_sizeof()
Dstringio.c299 return PyLong_FromSsize_t(self->pos); in _io_StringIO_tell_impl()
465 return PyLong_FromSsize_t(size); in _io_StringIO_truncate_impl()
518 return PyLong_FromSsize_t(self->pos); in _io_StringIO_seek_impl()
552 return PyLong_FromSsize_t(size); in _io_StringIO_write()
D_iomodule.h107 # define PyLong_FromOff_t PyLong_FromSsize_t
/external/python/cpython3/Modules/
D_bisectmodule.c62 return PyLong_FromSsize_t(index); in bisect_right()
166 return PyLong_FromSsize_t(index); in bisect_left()
Ditertoolsmodule.c1584 stop = PyLong_FromSsize_t(lz->stop); in islice_reduce()
2144 return PyLong_FromSsize_t(res); in product_sizeof()
2263 PyObject* index = PyLong_FromSsize_t(lz->indices[i]); in product_reduce()
2474 return PyLong_FromSsize_t(res); in combinations_sizeof()
2588 PyObject* index = PyLong_FromSsize_t(lz->indices[i]); in combinations_reduce()
2814 return PyLong_FromSsize_t(res); in cwr_sizeof()
2921 PyObject* index = PyLong_FromSsize_t(lz->indices[i]); in cwr_reduce()
3162 return PyLong_FromSsize_t(res); in permutations_sizeof()
3281 PyObject* index = PyLong_FromSsize_t(po->indices[i]); in permutations_reduce()
3291 PyObject* index = PyLong_FromSsize_t(po->cycles[i]); in permutations_reduce()
[all …]
Dmmapmodule.c306 return PyLong_FromSsize_t(p - self->data); in mmap_gfind()
377 return PyLong_FromSsize_t(data.len); in mmap_write_method()
426 return PyLong_FromSsize_t(self->size); in mmap_size_method()
691 return PyLong_FromSsize_t(res); in mmap__sizeof__method()
/external/python/cpython3/Modules/clinic/
Dgcmodule.c.h104 return_value = PyLong_FromSsize_t(_return_value); in gc_collect()
323 return_value = PyLong_FromSsize_t(_return_value); in gc_get_freeze_count()
D_weakref.c.h27 return_value = PyLong_FromSsize_t(_return_value); in _weakref_getweakrefcount()
D_pickle.c.h59 return_value = PyLong_FromSsize_t(_return_value); in _pickle_Pickler___sizeof__()
249 return_value = PyLong_FromSsize_t(_return_value); in _pickle_Unpickler___sizeof__()
D_queuemodule.c.h213 return_value = PyLong_FromSsize_t(_return_value); in _queue_SimpleQueue_qsize()
/external/python/cpython2/Objects/stringlib/
Dstring_format.h11 #define PyLong_FromSsize_t _PyLong_FromSsize_t macro
255 PyObject *idx_obj = PyLong_FromSsize_t(idx); in getitem_idx()
1260 obj = PyLong_FromSsize_t(idx); in fieldnameiter_next()
1347 first_obj = PyLong_FromSsize_t(first_idx); in formatter_field_name_split()
/external/python/cpython2/Modules/_multiprocessing/
Dmultiprocessing.h150 # define PyInt_FromSsize_t PyLong_FromSsize_t
/external/python/cpython3/Misc/
Dcoverity_model.c70 PyObject *PyLong_FromSsize_t(Py_ssize_t ival) in PyLong_FromSsize_t() function
/external/python/cpython3/Modules/_ctypes/
Dcallproc.c1488 return PyLong_FromSsize_t(dict->size); in sizeof_func()
1491 return PyLong_FromSsize_t(((CDataObject *)obj)->b_size); in sizeof_func()
1509 return PyLong_FromSsize_t(dict->align); in align_func()
1513 return PyLong_FromSsize_t(dict->align); in align_func()
1795 PyTuple_SET_ITEM(shape, i, PyLong_FromSsize_t(dict->shape[i])); in buffer_info()
/external/python/cpython3/Include/
Dlongobject.h21 PyAPI_FUNC(PyObject *) PyLong_FromSsize_t(Py_ssize_t);
/external/python/cpython3/Objects/clinic/
Dlongobject.c.h92 return_value = PyLong_FromSsize_t(_return_value); in int___sizeof__()
/external/python/cpython3/Objects/stringlib/
Dunicode_format.h168 PyObject *idx_obj = PyLong_FromSsize_t(idx); in getitem_idx()
1178 obj = PyLong_FromSsize_t(idx); in fieldnameiter_next()
1272 first_obj = PyLong_FromSsize_t(first_idx); in formatter_field_name_split()

1234