Home
last modified time | relevance | path

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

1234

/external/python/cpython3/Python/
Dstructmember.c140 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
151 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
160 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
169 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
178 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
192 ulong_val = PyLong_AsLong(v); in PyMember_SetOne()
205 *(long*)addr = PyLong_AsLong(v); in PyMember_SetOne()
217 *(unsigned long*)addr = PyLong_AsLong(v); in PyMember_SetOne()
281 *(unsigned long long*)addr = value = PyLong_AsLong(v); in PyMember_SetOne()
Dgetargs.c687 ival = PyLong_AsLong(arg); in convertsimple()
724 ival = PyLong_AsLong(arg); in convertsimple()
761 ival = PyLong_AsLong(arg); in convertsimple()
815 ival = PyLong_AsLong(arg); in convertsimple()
/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.c165 mode.c_iflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 0)); in termios_tcsetattr()
166 mode.c_oflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 1)); in termios_tcsetattr()
167 mode.c_cflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 2)); in termios_tcsetattr()
168 mode.c_lflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 3)); in termios_tcsetattr()
169 ispeed = (speed_t) PyLong_AsLong(PyList_GetItem(term, 4)); in termios_tcsetattr()
170 ospeed = (speed_t) PyLong_AsLong(PyList_GetItem(term, 5)); in termios_tcsetattr()
188 mode.c_cc[i] = (cc_t) PyLong_AsLong(v); in termios_tcsetattr()
Dfcntlmodule.c397 l.l_start = PyLong_AsLong(startobj); in fcntl_lockf_impl()
401 PyLong_AsLong(startobj); in fcntl_lockf_impl()
408 l.l_len = PyLong_AsLong(lenobj); in fcntl_lockf_impl()
412 PyLong_AsLong(lenobj); in fcntl_lockf_impl()
D_posixsubprocess.c126 iter_fd = PyLong_AsLong(py_fd); in _sanity_check_python_fd_sequence()
148 long middle_fd = PyLong_AsLong(PyTuple_GET_ITEM(fd_sequence, middle)); in _is_fd_in_sorted_fd_sequence()
167 long fd = PyLong_AsLong(fdobj); in make_inheritable()
230 int keep_fd = PyLong_AsLong(py_keep_fd); in _close_fds_by_brute_force()
D_opcode.c34 oparg_int = (int)PyLong_AsLong(oparg); in _opcode_stack_effect_impl()
Dresource.c145 rl_out->rlim_cur = PyLong_AsLong(curobj); in py2rlimit()
148 rl_out->rlim_max = PyLong_AsLong(maxobj); in py2rlimit()
Dsocketmodule.h168 #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/Objects/
Drangeobject.c774 long index = PyLong_AsLong(state); in rangeiter_setstate()
1045 lstart = PyLong_AsLong(r->start); in range_iter()
1050 lstop = PyLong_AsLong(r->stop); in range_iter()
1055 lstep = PyLong_AsLong(r->step); in range_iter()
1104 lstart = PyLong_AsLong(range->start); in range_reverse()
1109 lstop = PyLong_AsLong(range->stop); in range_reverse()
1114 lstep = PyLong_AsLong(range->step); in range_reverse()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_exception_registry.cc33 TF_Code code = static_cast<TF_Code>(PyLong_AsLong(key)); in Init()
/external/python/cpython3/Doc/includes/
Drun-func.c42 printf("Result of call: %ld\n", PyLong_AsLong(pValue)); in main()
/external/python/cpython2/Include/
Dlongobject.h23 PyAPI_FUNC(long) PyLong_AsLong(PyObject *);
/external/python/cpython2/Modules/_io/
D_iomodule.h129 # define PyLong_AsOff_t PyLong_AsLong
Dfileio.c782 pos = PyLong_AsLong(posobj); in portable_lseek()
911 pos = PyLong_AsLong(posobj); in fileio_truncate()
/external/python/cpython3/Modules/_io/
D_iomodule.c395 isatty = PyLong_AsLong(res); in _io_open_impl()
413 buffering = PyLong_AsLong(blksize_obj); in _io_open_impl()
D_iomodule.h120 # define PyLong_AsOff_t PyLong_AsLong
Dfileio.c899 pos = PyLong_AsLong(posobj);
1013 pos = PyLong_AsLong(posobj);
/external/python/cpython3/Modules/_ctypes/
Dcallbacks.c477 retval = PyLong_AsLong(result); in Call_GetClassObject()
532 retval = PyLong_AsLong(result); in Call_CanUnloadNow()
/external/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc53 #define PyInt_AsLong PyLong_AsLong
276 from = to = PyLong_AsLong(slice); in AssignSubscript()
Drepeated_scalar_container.cc303 from = to = PyLong_AsLong(slice); in Subscript()
455 from = to = PyLong_AsLong(slice); in AssSubscript()
/external/python/cpython2/Objects/
Dintobject.c160 return PyLong_AsLong(op); in PyInt_AsLong()
169 val = PyLong_AsLong((PyObject *)io); in PyInt_AsLong()
1128 ival = PyLong_AsLong(tmp); in int_subtype_new()
/external/python/cpython2/PC/os2vacpp/
Dpython.def233 PyLong_AsLong

1234