Home
last modified time | relevance | path

Searched refs:PyLong_AsLong (Results 1 – 25 of 124) sorted by relevance

12345

/external/python/cpython3/Python/
Dstructmember.c139 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
150 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
159 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
168 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
177 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
191 ulong_val = PyLong_AsLong(v); in PyMember_SetOne()
204 *(long*)addr = PyLong_AsLong(v); in PyMember_SetOne()
216 *(unsigned long*)addr = PyLong_AsLong(v); in PyMember_SetOne()
280 *(unsigned long long*)addr = value = PyLong_AsLong(v); in PyMember_SetOne()
/external/python/cpython3/Include/
Dlongobject.h23 PyAPI_FUNC(long) PyLong_AsLong(PyObject *);
36 #define PyLong_AS_LONG(op) PyLong_AsLong(op)
42 #define PyLong_AsPid PyLong_AsLong
46 #define PyLong_AsPid PyLong_AsLong
/external/python/cpython3/Lib/ctypes/test/
Dtest_python_api.py49 pythonapi.PyLong_AsLong.argtypes = (py_object,)
50 pythonapi.PyLong_AsLong.restype = c_long
52 res = pythonapi.PyLong_AsLong(42)
/external/python/cpython3/Modules/
Dtermios.c180 mode.c_iflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 0)); in termios_tcsetattr()
181 mode.c_oflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 1)); in termios_tcsetattr()
182 mode.c_cflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 2)); in termios_tcsetattr()
183 mode.c_lflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 3)); in termios_tcsetattr()
184 ispeed = (speed_t) PyLong_AsLong(PyList_GetItem(term, 4)); in termios_tcsetattr()
185 ospeed = (speed_t) PyLong_AsLong(PyList_GetItem(term, 5)); in termios_tcsetattr()
203 mode.c_cc[i] = (cc_t) PyLong_AsLong(v); in termios_tcsetattr()
Dfcntlmodule.c415 l.l_start = PyLong_AsLong(startobj); in fcntl_lockf_impl()
419 PyLong_AsLong(startobj); in fcntl_lockf_impl()
426 l.l_len = PyLong_AsLong(lenobj); in fcntl_lockf_impl()
430 PyLong_AsLong(lenobj); in fcntl_lockf_impl()
D_opcode.c38 oparg_int = (int)PyLong_AsLong(oparg); in _opcode_stack_effect_impl()
D_posixsubprocess.c154 iter_fd = PyLong_AsLong(py_fd); in _sanity_check_python_fd_sequence()
176 long middle_fd = PyLong_AsLong(PyTuple_GET_ITEM(fd_sequence, middle)); in _is_fd_in_sorted_fd_sequence()
195 long fd = PyLong_AsLong(fdobj); in make_inheritable()
258 int keep_fd = PyLong_AsLong(py_keep_fd); in _close_fds_by_brute_force()
Dresource.c142 rl_out->rlim_cur = PyLong_AsLong(curobj); in py2rlimit()
145 rl_out->rlim_max = PyLong_AsLong(maxobj); in py2rlimit()
Dsocketmodule.h222 #define PyLong_AsSocket_t(fd) (SOCKET_T)PyLong_AsLong(fd)
/external/python/cpython2/Python/
Dstructmember.c264 ulong_val = PyLong_AsLong(v); in PyMember_SetOne()
277 *(long*)addr = PyLong_AsLong(v); in PyMember_SetOne()
289 *(unsigned long*)addr = PyLong_AsLong(v); in PyMember_SetOne()
/external/python/cpython3/Modules/clinic/
D_cursesmodule.c.h260 attr = PyLong_AsLong(args[1]); in _curses_window_bkgd()
294 attr = PyLong_AsLong(arg); in _curses_window_attroff()
327 attr = PyLong_AsLong(arg); in _curses_window_attron()
360 attr = PyLong_AsLong(arg); in _curses_window_attrset()
407 attr = PyLong_AsLong(args[1]); in _curses_window_bkgdset()
695 attr = PyLong_AsLong(args[1]); in _curses_window_echochar()
2054 long ival = PyLong_AsLong(arg); in _curses_color_content()
2108 long ival = PyLong_AsLong(arg); in _curses_color_pair()
2478 long ival = PyLong_AsLong(args[0]); in _curses_ungetmouse()
2577 long ival = PyLong_AsLong(arg); in _curses_halfdelay()
[all …]
/external/python/cpython3/Objects/
Drangeobject.c808 long index = PyLong_AsLong(state); in rangeiter_setstate()
1080 lstart = PyLong_AsLong(r->start); in range_iter()
1085 lstop = PyLong_AsLong(r->stop); in range_iter()
1090 lstep = PyLong_AsLong(r->step); in range_iter()
1139 lstart = PyLong_AsLong(range->start); in range_reverse()
1144 lstop = PyLong_AsLong(range->stop); in range_reverse()
1149 lstep = PyLong_AsLong(range->step); in range_reverse()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_exception_registry.cc36 singleton_->exc_types_.emplace(static_cast<TF_Code>(PyLong_AsLong(key)), in Init()
/external/llvm-project/lldb/tools/intel-features/scripts/
Dpython-typemaps.txt8 $2 = PyLong_AsLong($input);
/external/python/cpython3/Doc/includes/
Drun-func.c43 printf("Result of call: %ld\n", PyLong_AsLong(pValue)); in main()
/external/python/cpython2/Include/
Dlongobject.h23 PyAPI_FUNC(long) PyLong_AsLong(PyObject *);
/external/tensorflow/tensorflow/python/framework/
Dpython_tensor_converter.cc28 #define PY_INT_AS_LONG(x) (PyLong_AsLong(x))
Dpython_tensor_converter_wrapper.cc31 #define PY_INT_AS_LONG(x) (PyLong_AsLong(x))
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_database.cc170 item_value = PyLong_AsLong(item.get()); in FindAllExtensionNumbers()
/external/python/cpython2/Modules/_io/
D_iomodule.h129 # define PyLong_AsOff_t PyLong_AsLong
/external/python/cpython3/Tools/peg_generator/peg_extension/
Dpeg_extension.c122 long count = PyLong_AsLong(value); in dump_memo_stats()
/external/python/cpython3/Modules/_io/
D_iomodule.h122 # define PyLong_AsOff_t PyLong_AsLong
D_iomodule.c406 isatty = PyLong_AsLong(res); in _io_open_impl()
424 buffering = PyLong_AsLong(blksize_obj); in _io_open_impl()
/external/python/cpython3/Modules/_ctypes/
Dcallbacks.c526 retval = PyLong_AsLong(result); in Call_GetClassObject()
581 retval = PyLong_AsLong(result); in Call_CanUnloadNow()
/external/python/pybind11/docs/advanced/cast/
Dcustom.rst62 value.long_value = PyLong_AsLong(tmp);

12345