/external/python/cpython3/Modules/_io/ |
D | bufferedio.c | 942 have = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _io__Buffered_read1_impl() 978 n = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _buffered_readinto_generic() 1092 n = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _buffered_readline() 1507 start = Py_SAFE_DOWNCAST(self->read_end, Py_off_t, Py_ssize_t); in _bufferedreader_fill_buffer() 1526 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_all() 1616 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_fast() 1637 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_generic() 1732 have = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_peek_unlocked() 1874 Py_SAFE_DOWNCAST(self->write_end - self->write_pos, in _bufferedwriter_flush_unlocked() 1886 written += Py_SAFE_DOWNCAST(n, Py_off_t, Py_ssize_t); in _bufferedwriter_flush_unlocked() [all …]
|
/external/python/cpython2/Python/ |
D | thread_nt.h | 145 Py_SAFE_DOWNCAST(_pythread_stacksize, Py_ssize_t, SIZE_T), in PyThread_start_new_thread() 149 Py_SAFE_DOWNCAST(_pythread_stacksize, in PyThread_start_new_thread()
|
D | pystrtod.c | 542 digit_count = Py_SAFE_DOWNCAST(p - digits_start, Py_ssize_t, int); in ensure_decimal_point() 609 written < Py_SAFE_DOWNCAST(buf_avail, size_t, int))) in ensure_decimal_point()
|
D | traceback.c | 143 int npath = Py_SAFE_DOWNCAST(_npath, Py_ssize_t, int); in _Py_DisplaySourceLine()
|
/external/python/cpython2/Modules/ |
D | md5module.c | 69 Py_SAFE_DOWNCAST(nbytes, Py_ssize_t, unsigned int)); in md5_update() 298 Py_SAFE_DOWNCAST(nbytes, Py_ssize_t, unsigned int)); in MD5_new()
|
D | _struct.c | 434 return PyInt_FromLong(Py_SAFE_DOWNCAST(x, PY_LONG_LONG, long)); in nu_longlong() 444 return PyInt_FromLong(Py_SAFE_DOWNCAST(x, unsigned PY_LONG_LONG, long)); in nu_ulonglong() 761 return PyInt_FromLong(Py_SAFE_DOWNCAST(x, PY_LONG_LONG, long)); in bu_longlong() 782 return PyInt_FromLong(Py_SAFE_DOWNCAST(x, unsigned PY_LONG_LONG, long)); in bu_ulonglong() 991 return PyInt_FromLong(Py_SAFE_DOWNCAST(x, PY_LONG_LONG, long)); in lu_longlong() 1012 return PyInt_FromLong(Py_SAFE_DOWNCAST(x, unsigned PY_LONG_LONG, long)); in lu_ulonglong() 1596 *res = Py_SAFE_DOWNCAST(n, Py_ssize_t, unsigned char); in s_pack_internal()
|
D | shamodule.c | 447 Py_SAFE_DOWNCAST(nbytes, Py_ssize_t, unsigned int)); in SHA_update() 582 Py_SAFE_DOWNCAST(nbytes, Py_ssize_t, unsigned int)); in SHA_new()
|
D | _hashopenssl.c | 162 process = Py_SAFE_DOWNCAST(len, Py_ssize_t, unsigned int); in EVP_hash()
|
/external/python/cpython2/Modules/_io/ |
D | bufferedio.c | 883 have = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in buffered_read1() 942 n = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _buffered_readline() 1328 start = Py_SAFE_DOWNCAST(self->read_end, Py_off_t, Py_ssize_t); in _bufferedreader_fill_buffer() 1351 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_all() 1418 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_fast() 1439 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_generic() 1536 have = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_peek_unlocked() 1774 Py_SAFE_DOWNCAST(self->write_end - self->write_pos, in _bufferedwriter_flush_unlocked() 1786 written += Py_SAFE_DOWNCAST(n, Py_off_t, Py_ssize_t); in _bufferedwriter_flush_unlocked() 1832 avail = Py_SAFE_DOWNCAST(self->buffer_size - self->pos, Py_off_t, Py_ssize_t); in bufferedwriter_write() [all …]
|
/external/python/cpython3/Parser/ |
D | grammar.c | 83 return Py_SAFE_DOWNCAST(s - d->d_state, intptr_t, int); in addstate() 125 return Py_SAFE_DOWNCAST(lb - ll->ll_label, intptr_t, int); in addlabel()
|
D | parsetok.c | 256 col_offset = Py_SAFE_DOWNCAST(a - tok->line_start, in parsetok()
|
/external/python/cpython3/Include/ |
D | pyport.h | 298 #define Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW) \ macro 301 #define Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW) (NARROW)(VALUE)
|
/external/python/cpython3/Modules/_sqlite/ |
D | util.c | 119 return PyLong_FromLong(Py_SAFE_DOWNCAST(value, sqlite_int64, long)); in _pysqlite_long_from_int64()
|
/external/python/cpython2/Modules/_sqlite/ |
D | util.c | 135 return PyInt_FromLong(Py_SAFE_DOWNCAST(value, sqlite_int64, long)); in _pysqlite_long_from_int64()
|
/external/python/cpython2/Include/ |
D | pyport.h | 455 #define Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW) \ macro 458 #define Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW) (NARROW)(VALUE)
|
/external/python/cpython3/Python/ |
D | pystrtod.c | 617 digit_count = Py_SAFE_DOWNCAST(p - digits_start, Py_ssize_t, int); in ensure_decimal_point() 684 written < Py_SAFE_DOWNCAST(buf_avail, size_t, int))) in ensure_decimal_point()
|
D | thread_nt.h | 196 Py_SAFE_DOWNCAST(stacksize, Py_ssize_t, unsigned int), in PyThread_start_new_thread()
|
/external/python/cpython3/PC/ |
D | winreg.c | 594 *retDataSize = Py_SAFE_DOWNCAST( in Py2Reg() 633 size += Py_SAFE_DOWNCAST((len + 1) * sizeof(wchar_t), in Py2Reg() 691 *retDataSize = Py_SAFE_DOWNCAST(view.len, Py_ssize_t, DWORD); in Py2Reg()
|
/external/python/cpython3/Modules/ |
D | signalmodule.c | 256 fd = Py_SAFE_DOWNCAST(wakeup.fd, SOCKET_T, int); in trip_signal() 663 old_fd = Py_SAFE_DOWNCAST(wakeup.fd, SOCKET_T, int); in PySignal_SetWakeupFd()
|
/external/python/cpython3/Modules/_ctypes/ |
D | callbacks.c | 383 Py_SAFE_DOWNCAST(nArgs, Py_ssize_t, int), in _ctypes_alloc_callback()
|
D | callproc.c | 721 Py_SAFE_DOWNCAST(index, Py_ssize_t, int)); in ConvParam() 1186 Py_SAFE_DOWNCAST(argcount, in _ctypes_callproc()
|
D | stgdict.c | 602 stgdict->ffi_type_pointer.alignment = Py_SAFE_DOWNCAST(total_align, in PyCStructUnionType_update_stgdict()
|
/external/python/cpython2/Modules/_ctypes/ |
D | callbacks.c | 468 Py_SAFE_DOWNCAST(nArgs, Py_ssize_t, int), in _ctypes_alloc_callback()
|
D | stgdict.c | 591 stgdict->ffi_type_pointer.alignment = Py_SAFE_DOWNCAST(total_align, in PyCStructUnionType_update_stgdict()
|
D | callproc.c | 731 Py_SAFE_DOWNCAST(index, Py_ssize_t, int)); in ConvParam() 1186 Py_SAFE_DOWNCAST(argcount, in _ctypes_callproc()
|