/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()
|
D | marshal.c | 91 *p->ptr++ = Py_SAFE_DOWNCAST(c, int, char); in w_more()
|
D | getargs.c | 335 Py_SAFE_DOWNCAST(len, Py_ssize_t, long)); in vgetargs1()
|
/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() 989 return PyInt_FromLong(Py_SAFE_DOWNCAST(x, PY_LONG_LONG, long)); in lu_longlong() 1010 return PyInt_FromLong(Py_SAFE_DOWNCAST(x, unsigned PY_LONG_LONG, long)); in lu_ulonglong() 1592 *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()
|
D | selectmodule.c | 371 *(unsigned short *)ptr = Py_SAFE_DOWNCAST(uval, unsigned long, unsigned short); in ushort_converter()
|
D | _ssl.c | 570 SSL_set_fd(self->ssl, Py_SAFE_DOWNCAST(sock->sock_fd, SOCKET_T, int)); in newPySSLSocket()
|
D | posixmodule.c | 1063 *time_out = Py_SAFE_DOWNCAST((in / 10000000) - secs_between_epochs, __int64, time_t); in FILE_TIME_to_time_t_nsec()
|
/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 …]
|
D | textio.c | 2335 cookie.chars_to_skip = Py_SAFE_DOWNCAST(chars_to_skip, Py_ssize_t, int); in textiowrapper_tell()
|
/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/cpython2/Modules/_ctypes/ |
D | stgdict.c | 583 stgdict->ffi_type_pointer.alignment = Py_SAFE_DOWNCAST(total_align, in PyCStructUnionType_update_stgdict()
|
D | callbacks.c | 468 Py_SAFE_DOWNCAST(nArgs, Py_ssize_t, int), in _ctypes_alloc_callback()
|
D | callproc.c | 731 Py_SAFE_DOWNCAST(index, Py_ssize_t, int)); in ConvParam() 1186 Py_SAFE_DOWNCAST(argcount, in _ctypes_callproc()
|
D | _ctypes.c | 2507 cp += sprintf(cp, "%x", Py_SAFE_DOWNCAST(index, Py_ssize_t, int)); in unique_key() 2520 cp += sprintf(cp, ":%x", Py_SAFE_DOWNCAST(target->b_index, Py_ssize_t, int)); in unique_key() 3253 Py_SAFE_DOWNCAST(index, Py_ssize_t, int), in _check_outarg_type() 3950 int required = Py_SAFE_DOWNCAST(PyTuple_GET_SIZE(converters), in PyCFuncPtr_call() 3952 int actual = Py_SAFE_DOWNCAST(PyTuple_GET_SIZE(callargs), in PyCFuncPtr_call()
|
/external/python/cpython2/Objects/ |
D | object.c | 1588 return (res > 0) ? 1 : Py_SAFE_DOWNCAST(res, Py_ssize_t, int); in PyObject_IsTrue()
|
D | abstract.c | 2408 return Py_SAFE_DOWNCAST(result, Py_ssize_t, int);
|
D | dictobject.c | 1570 return Py_SAFE_DOWNCAST(i, Py_ssize_t, int); in PyDict_MergeFromSeq2()
|
D | unicodeobject.c | 2172 nallocated = Py_SAFE_DOWNCAST(sizeof(stackbuf), size_t, int); in PyUnicode_EncodeUTF8() 8150 return Py_SAFE_DOWNCAST(result, Py_ssize_t, int); in longtounicode()
|