Searched refs:PyLong_AsLong (Results 1 - 25 of 91) sorted by relevance
1234
/external/python/cpython3/Modules/ |
H A D | _opcode.c | 34 oparg_int = (int)PyLong_AsLong(oparg);
|
H A D | termios.c | 159 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.c | 118 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 D | fcntlmodule.c | 389 l.l_start = PyLong_AsLong(startobj); 393 PyLong_AsLong(startobj); 400 l.l_len = PyLong_AsLong(lenobj); 404 PyLong_AsLong(lenobj);
|
H A D | socketmodule.h | 127 #define PyLong_AsSocket_t(fd) (SOCKET_T)PyLong_AsLong(fd)
|
H A D | resource.c | 126 rl_out->rlim_cur = PyLong_AsLong(curobj); 129 rl_out->rlim_max = PyLong_AsLong(maxobj);
|
H A D | _randommodule.c | 370 index = PyLong_AsLong(PyTuple_GET_ITEM(state, i));
|
/external/python/cpython3/Python/ |
H A D | structmember.c | 140 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 D | getargs.c | 637 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 D | test_python_api.py | 49 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 D | longobject.h | 23 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 D | run-func.c | 42 printf("Result of call: %ld\n", PyLong_AsLong(pValue));
|
/external/python/cpython2/Include/ |
H A D | longobject.h | 23 PyAPI_FUNC(long) PyLong_AsLong(PyObject *);
|
/external/python/cpython2/Python/ |
H A D | structmember.c | 264 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.h | 129 # define PyLong_AsOff_t PyLong_AsLong
|
H A D | _iomodule.c | 433 isatty = PyLong_AsLong(res);
|
/external/python/cpython3/Objects/ |
H A D | rangeobject.c | 807 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.h | 122 # define PyLong_AsOff_t PyLong_AsLong
|
H A D | _iomodule.c | 396 isatty = PyLong_AsLong(res); 414 buffering = PyLong_AsLong(blksize_obj);
|
H A D | fileio.c | 904 pos = PyLong_AsLong(posobj); 1013 pos = PyLong_AsLong(posobj);
|
/external/python/cpython3/Modules/_ctypes/ |
H A D | callbacks.c | 484 retval = PyLong_AsLong(result); 545 retval = PyLong_AsLong(result);
|
/external/protobuf/python/google/protobuf/pyext/ |
H A D | repeated_composite_container.cc | 53 #define PyInt_AsLong PyLong_AsLong 276 from = to = PyLong_AsLong(slice);
|
/external/brotli/python/ |
H A D | _brotli.cc | 12 #define PyInt_AsLong PyLong_AsLong
|
/external/python/cpython2/Modules/ |
H A D | _randommodule.c | 363 index = PyLong_AsLong(PyTuple_GET_ITEM(state, i));
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
H A D | numpy_bridge.cc | 488 return PyLong_AsLong(o);
|
Completed in 878 milliseconds
1234