Searched refs:PyLong_AsLong (Results 1 - 25 of 91) sorted by relevance

1234

/external/python/cpython3/Modules/
H A D_opcode.c34 oparg_int = (int)PyLong_AsLong(oparg);
H A Dtermios.c159 mode.c_iflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 0));
160 mode.c_oflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 1));
161 mode.c_cflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 2));
162 mode.c_lflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 3));
163 ispeed = (speed_t) PyLong_AsLong(PyList_GetItem(term, 4));
164 ospeed = (speed_t) PyLong_AsLong(PyList_GetItem(term, 5));
182 mode.c_cc[i] = (cc_t) PyLong_AsLong(v);
H A D_posixsubprocess.c118 long iter_fd = PyLong_AsLong(py_fd);
140 long middle_fd = PyLong_AsLong(
160 long fd = PyLong_AsLong(fdobj);
224 int keep_fd = PyLong_AsLong(py_keep_fd);
H A Dfcntlmodule.c389 l.l_start = PyLong_AsLong(startobj);
393 PyLong_AsLong(startobj);
400 l.l_len = PyLong_AsLong(lenobj);
404 PyLong_AsLong(lenobj);
H A Dsocketmodule.h127 #define PyLong_AsSocket_t(fd) (SOCKET_T)PyLong_AsLong(fd)
H A Dresource.c126 rl_out->rlim_cur = PyLong_AsLong(curobj);
129 rl_out->rlim_max = PyLong_AsLong(maxobj);
H A D_randommodule.c370 index = PyLong_AsLong(PyTuple_GET_ITEM(state, i));
/external/python/cpython3/Python/
H A Dstructmember.c140 long long_val = PyLong_AsLong(v);
151 long long_val = PyLong_AsLong(v);
160 long long_val = PyLong_AsLong(v);
169 long long_val = PyLong_AsLong(v);
178 long long_val = PyLong_AsLong(v);
192 ulong_val = PyLong_AsLong(v);
205 *(long*)addr = PyLong_AsLong(v);
217 *(unsigned long*)addr = PyLong_AsLong(v);
281 *(unsigned long long*)addr = value = PyLong_AsLong(v);
H A Dgetargs.c637 ival = PyLong_AsLong(arg);
674 ival = PyLong_AsLong(arg);
711 ival = PyLong_AsLong(arg);
765 ival = PyLong_AsLong(arg);
/external/python/cpython3/Lib/ctypes/test/
H A 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/Include/
H A 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/Doc/includes/
H A Drun-func.c42 printf("Result of call: %ld\n", PyLong_AsLong(pValue));
/external/python/cpython2/Include/
H A Dlongobject.h23 PyAPI_FUNC(long) PyLong_AsLong(PyObject *);
/external/python/cpython2/Python/
H A Dstructmember.c264 ulong_val = PyLong_AsLong(v);
277 *(long*)addr = PyLong_AsLong(v);
289 *(unsigned long*)addr = PyLong_AsLong(v);
/external/python/cpython2/Modules/_io/
H A D_iomodule.h129 # define PyLong_AsOff_t PyLong_AsLong
H A D_iomodule.c433 isatty = PyLong_AsLong(res);
/external/python/cpython3/Objects/
H A Drangeobject.c807 long index = PyLong_AsLong(state);
1129 lstart = PyLong_AsLong(r->start);
1134 lstop = PyLong_AsLong(r->stop);
1139 lstep = PyLong_AsLong(r->step);
1196 lstart = PyLong_AsLong(range->start);
1201 lstop = PyLong_AsLong(range->stop);
1206 lstep = PyLong_AsLong(range->step);
/external/python/cpython3/Modules/_io/
H A D_iomodule.h122 # define PyLong_AsOff_t PyLong_AsLong
H A D_iomodule.c396 isatty = PyLong_AsLong(res);
414 buffering = PyLong_AsLong(blksize_obj);
H A Dfileio.c904 pos = PyLong_AsLong(posobj);
1013 pos = PyLong_AsLong(posobj);
/external/python/cpython3/Modules/_ctypes/
H A Dcallbacks.c484 retval = PyLong_AsLong(result);
545 retval = PyLong_AsLong(result);
/external/protobuf/python/google/protobuf/pyext/
H A Drepeated_composite_container.cc53 #define PyInt_AsLong PyLong_AsLong
276 from = to = PyLong_AsLong(slice);
/external/brotli/python/
H A D_brotli.cc12 #define PyInt_AsLong PyLong_AsLong
/external/python/cpython2/Modules/
H A D_randommodule.c363 index = PyLong_AsLong(PyTuple_GET_ITEM(state, i));
/external/tensorflow/tensorflow/compiler/xla/python/
H A Dnumpy_bridge.cc488 return PyLong_AsLong(o);

Completed in 878 milliseconds

1234