/external/python/cpython3/Modules/ |
D | resource.c | 105 PyStructSequence_SET_ITEM(result, 2, PyLong_FromLong(ru.ru_maxrss)); in resource_getrusage_impl() 106 PyStructSequence_SET_ITEM(result, 3, PyLong_FromLong(ru.ru_ixrss)); in resource_getrusage_impl() 107 PyStructSequence_SET_ITEM(result, 4, PyLong_FromLong(ru.ru_idrss)); in resource_getrusage_impl() 108 PyStructSequence_SET_ITEM(result, 5, PyLong_FromLong(ru.ru_isrss)); in resource_getrusage_impl() 109 PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(ru.ru_minflt)); in resource_getrusage_impl() 110 PyStructSequence_SET_ITEM(result, 7, PyLong_FromLong(ru.ru_majflt)); in resource_getrusage_impl() 111 PyStructSequence_SET_ITEM(result, 8, PyLong_FromLong(ru.ru_nswap)); in resource_getrusage_impl() 112 PyStructSequence_SET_ITEM(result, 9, PyLong_FromLong(ru.ru_inblock)); in resource_getrusage_impl() 113 PyStructSequence_SET_ITEM(result, 10, PyLong_FromLong(ru.ru_oublock)); in resource_getrusage_impl() 114 PyStructSequence_SET_ITEM(result, 11, PyLong_FromLong(ru.ru_msgsnd)); in resource_getrusage_impl() [all …]
|
D | termios.c | 103 v = PyLong_FromLong((long)mode.c_cc[VMIN]); in termios_tcgetattr() 107 v = PyLong_FromLong((long)mode.c_cc[VTIME]); in termios_tcgetattr() 116 PyList_SetItem(v, 0, PyLong_FromLong((long)mode.c_iflag)); in termios_tcgetattr() 117 PyList_SetItem(v, 1, PyLong_FromLong((long)mode.c_oflag)); in termios_tcgetattr() 118 PyList_SetItem(v, 2, PyLong_FromLong((long)mode.c_cflag)); in termios_tcgetattr() 119 PyList_SetItem(v, 3, PyLong_FromLong((long)mode.c_lflag)); in termios_tcgetattr() 120 PyList_SetItem(v, 4, PyLong_FromLong((long)ispeed)); in termios_tcgetattr() 121 PyList_SetItem(v, 5, PyLong_FromLong((long)ospeed)); in termios_tcgetattr()
|
D | signalmodule.c | 618 return PyLong_FromLong(-1); in signal_set_wakeup_fd() 641 return PyLong_FromLong(old_fd); in signal_set_wakeup_fd() 817 signum = PyLong_FromLong(sig); in sigset_to_set() 931 return PyLong_FromLong(signum); in signal_sigwait() 972 PyStructSequence_SET_ITEM(result, 0, PyLong_FromLong((long)(si->si_signo))); in fill_siginfo() 973 PyStructSequence_SET_ITEM(result, 1, PyLong_FromLong((long)(si->si_code))); in fill_siginfo() 974 PyStructSequence_SET_ITEM(result, 2, PyLong_FromLong((long)(si->si_errno))); in fill_siginfo() 978 PyLong_FromLong((long)(si->si_status))); in fill_siginfo() 980 PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band)); in fill_siginfo() 982 PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(0L)); in fill_siginfo() [all …]
|
D | _testcapimodule.c | 146 PyObject* anint = PyLong_FromLong(i); in test_list_api() 187 v = PyLong_FromLong(i); in test_dict_inner() 203 o = PyLong_FromLong(i); in test_dict_inner() 406 #define F_S_TO_PY PyLong_FromLong 484 num = PyLong_FromLong(LONG_MAX); in test_long_and_overflow() 487 one = PyLong_FromLong(1L); in test_long_and_overflow() 528 num = PyLong_FromLong(LONG_MIN); in test_long_and_overflow() 531 one = PyLong_FromLong(1L); in test_long_and_overflow() 585 num = PyLong_FromLong(LONG_MAX); in test_long_and_overflow() 600 num = PyLong_FromLong(LONG_MIN); in test_long_and_overflow() [all …]
|
D | xxsubtype.c | 31 return PyLong_FromLong(self->state); in spamlist_getstate() 94 return PyLong_FromLong(self->state); in spamlist_state_get() 156 return PyLong_FromLong(self->state); in spamdict_getstate()
|
D | syslogmodule.c | 213 return PyLong_FromLong(omaskpri); in syslog_setlogmask() 224 return PyLong_FromLong(mask); in syslog_log_mask() 235 return PyLong_FromLong(mask); in syslog_log_upto()
|
D | ossaudiodev.c | 257 return PyLong_FromLong(arg); in _do_ioctl_1() 282 return PyLong_FromLong(arg); in _do_ioctl_1_internal() 350 return PyLong_FromLong(mask); in oss_getfmts() 448 return PyLong_FromLong(rv); in oss_write() 555 return PyLong_FromLong(self->fd); in oss_fileno() 666 return PyLong_FromLong((ai.fragstotal * ai.fragsize) / (nchannels * ssize)); in oss_bufsize() 688 return PyLong_FromLong((ai.fragstotal * ai.fragsize - ai.bytes) / in oss_obufcount() 711 return PyLong_FromLong(ai.bytes / (ssize * nchannels)); in oss_obuffree() 755 return PyLong_FromLong(self->fd); in oss_mixer_fileno()
|
D | pyexpat.c | 96 PyObject *v = PyLong_FromLong(value); in set_error_attr() 703 return PyLong_FromLong(rv); in get_parse_result() 1007 return PyLong_FromLong(flag); in pyexpat_xmlparser_SetParamEntityParsing_impl() 1285 return PyLong_FromLong((long) in xmlparse_getattro() 1288 return PyLong_FromLong((long) in xmlparse_getattro() 1291 return PyLong_FromLong((long) in xmlparse_getattro() 1294 return PyLong_FromLong((long) in xmlparse_getattro() 1299 return PyLong_FromLong((long) in xmlparse_getattro() 1302 return PyLong_FromLong((long) in xmlparse_getattro() 1305 return PyLong_FromLong((long) in xmlparse_getattro() [all …]
|
D | readline.c | 322 return PyLong_FromLong(_history_length); in get_history_length() 422 return PyLong_FromLong(rl_completion_type); in get_completion_type() 734 return PyLong_FromLong((long)_py_get_history_length()); in get_current_history_length() 1061 readlinestate_global->begidx = PyLong_FromLong((long) start); in flex_complete() 1062 readlinestate_global->endidx = PyLong_FromLong((long) end); in flex_complete() 1126 mod_state->begidx = PyLong_FromLong(0L); in setup_readline() 1127 mod_state->endidx = PyLong_FromLong(0L); in setup_readline()
|
D | mmapmodule.c | 216 return PyLong_FromLong((unsigned char)self->data[self->pos++]); in mmap_read_byte_method() 310 return PyLong_FromLong(-1); in mmap_gfind() 422 return PyLong_FromLong((long)low); in mmap_size_method() 438 return PyLong_FromLong(status.st_size); in mmap_size_method() 572 return PyLong_FromLong(0); in mmap_flush_method() 575 return PyLong_FromLong((long) FlushViewOfFile(self->data+offset, size)); in mmap_flush_method() 583 return PyLong_FromLong(0); in mmap_flush_method() 776 return PyLong_FromLong(Py_CHARMASK(self->data[i])); in mmap_subscript() 1392 PyObject *o = PyLong_FromLong(value); in setint()
|
D | testcapi_long.h | 84 one = PyLong_FromLong(1); in TESTNAME() 107 y = PyLong_FromLong((long)NBITS); in TESTNAME()
|
D | _testmultiphase.c | 117 return PyLong_FromLong(res); in testexport_foo() 273 three = PyLong_FromLong(3); in createfunc_nonmodule() 313 return PyLong_FromLong(res); in nonmodule_bar() 640 m_state->integer = PyLong_FromLong(0x7fffffff); in execfunc_with_bad_traverse()
|
D | selectmodule.c | 422 key = PyLong_FromLong(fd); in poll_register() 425 value = PyLong_FromLong(events); in poll_register() 463 key = PyLong_FromLong(fd); in poll_modify() 472 value = PyLong_FromLong(events); in poll_modify() 504 key = PyLong_FromLong(fd); in poll_unregister() 638 num = PyLong_FromLong(self->ufds[i].fd); in poll_poll() 649 num = PyLong_FromLong(self->ufds[i].revents & 0xffff); in poll_poll() 969 num1 = PyLong_FromLong(self->fds[i].fd); in devpoll_poll() 970 num2 = PyLong_FromLong(self->fds[i].revents); in devpoll_poll() 1037 return PyLong_FromLong(self->fd_devpoll); in devpoll_fileno() [all …]
|
/external/python/cpython3/Python/ |
D | sysmodule.c | 662 return PyLong_FromLong(interp->check_interval); in sys_getcheckinterval() 980 PyLong_FromLong(8*sizeof(Py_hash_t))); in get_hash_info() 984 PyLong_FromLong(_PyHASH_INF)); in get_hash_info() 986 PyLong_FromLong(_PyHASH_NAN)); in get_hash_info() 988 PyLong_FromLong(_PyHASH_IMAG)); in get_hash_info() 992 PyLong_FromLong(hashfunc->hash_bits)); in get_hash_info() 994 PyLong_FromLong(hashfunc->seed_bits)); in get_hash_info() 996 PyLong_FromLong(Py_HASH_CUTOFF)); in get_hash_info() 1017 return PyLong_FromLong(Py_GetRecursionLimit()); in sys_getrecursionlimit() 1094 PyStructSequence_SET_ITEM(version, pos++, PyLong_FromLong(ver.dwMajorVersion)); in sys_getwindowsversion() [all …]
|
D | structmember.c | 19 v = PyLong_FromLong(*(char*)addr); in PyMember_GetOne() 25 v = PyLong_FromLong(*(short*)addr); in PyMember_GetOne() 31 v = PyLong_FromLong(*(int*)addr); in PyMember_GetOne() 37 v = PyLong_FromLong(*(long*)addr); in PyMember_GetOne()
|
/external/python/cpython3/Misc/ |
D | coverity_model.c | 49 PyObject *PyLong_FromLong(long ival) in PyLong_FromLong() function 67 return PyLong_FromLong((long)ival); in PyLong_FromLongLong() 72 return PyLong_FromLong((long)ival); in PyLong_FromSsize_t()
|
/external/python/cpython3/PC/clinic/ |
D | msvcrtmodule.c.h | 96 return_value = PyLong_FromLong(_return_value); in msvcrt_setmode() 134 return_value = PyLong_FromLong(_return_value); in msvcrt_open_osfhandle() 196 return_value = PyLong_FromLong(_return_value); in msvcrt_kbhit() 488 return_value = PyLong_FromLong(_return_value); in msvcrt_CrtSetReportMode() 526 return_value = PyLong_FromLong(_return_value); in msvcrt_set_error_mode()
|
/external/python/cpython3/Modules/_multiprocessing/ |
D | multiprocessing.c | 116 return PyLong_FromLong(ret); in multiprocessing_send() 179 py_sem_value_max = PyLong_FromLong(INT_MAX); in PyInit__multiprocessing() 181 py_sem_value_max = PyLong_FromLong(SEM_VALUE_MAX); in PyInit__multiprocessing()
|
/external/python/cpython3/Include/ |
D | longobject.h | 18 PyAPI_FUNC(PyObject *) PyLong_FromLong(long); 41 #define PyLong_FromPid PyLong_FromLong 45 #define PyLong_FromPid PyLong_FromLong
|
/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 511 #define F_S_TO_PY PyLong_FromLong 591 num = PyLong_FromLong(LONG_MAX); in test_long_and_overflow() 594 one = PyLong_FromLong(1L); in test_long_and_overflow() 635 num = PyLong_FromLong(LONG_MIN); in test_long_and_overflow() 638 one = PyLong_FromLong(1L); in test_long_and_overflow() 692 num = PyLong_FromLong(LONG_MAX); in test_long_and_overflow() 707 num = PyLong_FromLong(LONG_MIN); in test_long_and_overflow() 759 one = PyLong_FromLong(1L); in test_long_long_and_overflow() 803 one = PyLong_FromLong(1L); in test_long_long_and_overflow() 905 num = PyLong_FromLong(42); in test_L_code() [all …]
|
D | testcapi_long.h | 85 one = PyLong_FromLong(1); in TESTNAME() 108 y = PyLong_FromLong((long)NBITS); in TESTNAME()
|
/external/python/cpython3/Objects/ |
D | rangeobject.c | 29 return PyLong_FromLong(1); in validate_step() 183 return PyLong_FromLong(0); in compute_range_length() 519 return PyLong_FromLong(result); in range_count() 728 return PyLong_FromLong((long)(r->start + in rangeiter_next() 736 return PyLong_FromLong(r->len - r->index); in rangeiter_len() 749 start = PyLong_FromLong(r->start); in rangeiter_reduce() 752 stop = PyLong_FromLong(r->start + r->len * r->step); in rangeiter_reduce() 755 step = PyLong_FromLong(r->step); in rangeiter_reduce()
|
D | longobject.c | 98 *x_p = (PyLongObject *)PyLong_FromLong(-MEDIUM_VALUE(x)); in _PyLong_Negate() 243 PyLong_FromLong(long ival) in PyLong_FromLong() function 320 return PyLong_FromLong(ival); in PyLong_FromUnsignedLong() 363 return PyLong_FromLong(0L); in PyLong_FromDouble() 786 return PyLong_FromLong(0L); in _PyLong_FromByteArray() 1125 return PyLong_FromLong((long)ival); in PyLong_FromUnsignedLongLong() 1193 return PyLong_FromLong((long)ival); in PyLong_FromSize_t() 2573 *prem = (PyLongObject *) PyLong_FromLong((long)rem); in long_divrem() 3051 return (PyLongObject *)PyLong_FromLong(0); in x_sub() 3090 return PyLong_FromLong(MEDIUM_VALUE(a) + MEDIUM_VALUE(b)); in long_add() [all …]
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_python_api.py | 44 pythonapi.PyLong_FromLong.restype = py_object 45 self.assertEqual(pythonapi.PyLong_FromLong(42), 42)
|
/external/python/cpython3/Modules/_ctypes/ |
D | cfield.c | 532 return PyLong_FromLong(val); in b_get() 551 return PyLong_FromLong(val); in B_get() 589 return PyLong_FromLong((long)val); in h_get() 599 return PyLong_FromLong(val); in h_get_sw() 637 return PyLong_FromLong(val); in H_get() 647 return PyLong_FromLong(val); in H_get_sw() 685 return PyLong_FromLong(val); in i_get() 695 return PyLong_FromLong(val); in i_get_sw() 826 return PyLong_FromLong(val); in l_get() 836 return PyLong_FromLong(val); in l_get_sw()
|