Home
last modified time | relevance | path

Searched refs:PyInt_AsLong (Results 1 – 25 of 86) sorted by relevance

1234

/external/python/cpython2/Python/
Dstructmember.c212 long long_val = PyInt_AsLong(v); in PyMember_SetOne()
223 long long_val = PyInt_AsLong(v); in PyMember_SetOne()
232 long long_val = PyInt_AsLong(v); in PyMember_SetOne()
241 long long_val = PyInt_AsLong(v); in PyMember_SetOne()
250 long long_val = PyInt_AsLong(v); in PyMember_SetOne()
351 *(unsigned PY_LONG_LONG*)addr = value = PyInt_AsLong(v); in PyMember_SetOne()
Ddynload_beos.c58 image_id id = (image_id)PyInt_AsLong( item ); in beos_nuke_dyn()
Dtraceback.c271 limit = PyInt_AsLong(limitv); in PyTraceBack_Print()
Dgetargs.c633 ival = PyInt_AsLong(arg); in convertsimple()
670 ival = PyInt_AsLong(arg); in convertsimple()
707 ival = PyInt_AsLong(arg); in convertsimple()
759 ival = PyInt_AsLong(arg); in convertsimple()
/external/python/cpython2/Modules/
Dcgensupport.c47 *p_arg = PyInt_AsLong(args); in PyArg_GetLong()
187 p_arg[i] = PyInt_AsLong(w); in PyArg_GetLongArray()
200 p_arg[i] = PyInt_AsLong(w); in PyArg_GetLongArray()
224 p_arg[i] = (short) PyInt_AsLong(w); in PyArg_GetShortArray()
237 p_arg[i] = (short) PyInt_AsLong(w); in PyArg_GetShortArray()
Dtermios.c166 mode.c_iflag = (tcflag_t) PyInt_AsLong(PyList_GetItem(term, 0)); in termios_tcsetattr()
167 mode.c_oflag = (tcflag_t) PyInt_AsLong(PyList_GetItem(term, 1)); in termios_tcsetattr()
168 mode.c_cflag = (tcflag_t) PyInt_AsLong(PyList_GetItem(term, 2)); in termios_tcsetattr()
169 mode.c_lflag = (tcflag_t) PyInt_AsLong(PyList_GetItem(term, 3)); in termios_tcsetattr()
170 ispeed = (speed_t) PyInt_AsLong(PyList_GetItem(term, 4)); in termios_tcsetattr()
171 ospeed = (speed_t) PyInt_AsLong(PyList_GetItem(term, 5)); in termios_tcsetattr()
189 mode.c_cc[i] = (cc_t) PyInt_AsLong(v); in termios_tcsetattr()
Dresource.c173 rl.rlim_cur = PyInt_AsLong(curobj); in resource_setrlimit()
176 rl.rlim_max = PyInt_AsLong(maxobj); in resource_setrlimit()
182 PyLong_AsLongLong(curobj) : PyInt_AsLong(curobj); in resource_setrlimit()
186 PyLong_AsLongLong(maxobj) : PyInt_AsLong(maxobj); in resource_setrlimit()
Dfcntlmodule.c347 l.l_start = PyInt_AsLong(startobj); in fcntl_lockf()
351 PyInt_AsLong(startobj); in fcntl_lockf()
358 l.l_len = PyInt_AsLong(lenobj); in fcntl_lockf()
362 PyInt_AsLong(lenobj); in fcntl_lockf()
Dsvmodule.c694 case 0: mapp[i].red = PyInt_AsLong(cell); break; in sv_LoadMap()
695 case 1: mapp[i].blue = PyInt_AsLong(cell); break; in sv_LoadMap()
696 case 2: mapp[i].green = PyInt_AsLong(cell); break; in sv_LoadMap()
764 PVbuffer[i] = PyInt_AsLong(v); in doParams()
Ddlmodule.c111 alist[i-1] = PyInt_AsLong(v); in dl_call()
/external/python/cpython2/Lib/ctypes/test/
Dtest_python_api.py51 pythonapi.PyInt_AsLong.argtypes = (py_object,)
52 pythonapi.PyInt_AsLong.restype = c_long
54 res = pythonapi.PyInt_AsLong(42)
/external/python/cpython2/RISCOS/Modules/
Ddrawfmodule.c194 { dash_pattern->elements[i]=(int)PyInt_AsLong(PyTuple_GetItem(dp,i)); in DrawF_Path()
203 *pe++=PyInt_AsLong(p); in DrawF_Path()
206 *pe++=PyInt_AsLong(PyTuple_GetItem(p,0)); in DrawF_Path()
207 *pe++=PyInt_AsLong(PyTuple_GetItem(p,1)); in DrawF_Path()
354 *dtable=(char)PyInt_AsLong(key); in DrawF_FontTable()
439 value=(int)PyInt_AsLong(par); in SetWord()
448 q=(int)PyInt_AsLong(par); in SetWord()
Dswimodule.c84 p[k]=PyInt_AsLong(q); in PyBlock_New()
255 ((long*)(b->block))[i]=PyInt_AsLong(v); in block_ass_item()
273 p[i+k]=PyInt_AsLong(q); in block_ass_slice()
/external/tensorflow/tensorflow/python/
Dpywrap_tfe.i256 long sz = PyInt_AsLong($input);
258 $1->resize(PyInt_AsLong($input), nullptr);
/external/python/cpython2/Doc/includes/
Drun-func.c42 printf("Result of call: %ld\n", PyInt_AsLong(pValue)); in main()
/external/python/cpython2/Include/
Dintobject.h44 PyAPI_FUNC(long) PyInt_AsLong(PyObject *);
/external/python/cpython2/Objects/
Dstructseq.c17 #define VISIBLE_SIZE_TP(tp) PyInt_AsLong( \
20 #define REAL_SIZE_TP(tp) PyInt_AsLong( \
24 #define UNNAMED_FIELDS_TP(tp) PyInt_AsLong( \
Dfileobject.c793 offset = PyInt_AsLong(off_index); in file_seek()
796 PyLong_AsLongLong(off_index) : PyInt_AsLong(off_index); in file_seek()
853 newsize = PyInt_AsLong(newsizeobj); in file_truncate()
857 PyInt_AsLong(newsizeobj); in file_truncate()
2229 new = PyInt_AsLong(value); in set_softspace()
2574 oldflag = PyInt_AsLong(v); in PyFile_SoftSpace()
/external/python/cpython2/Modules/_ctypes/
Dcallbacks.c564 retval = PyInt_AsLong(result); in Call_GetClassObject()
625 retval = PyInt_AsLong(result); in Call_CanUnloadNow()
/external/brotli/python/
D_brotli.cc12 #define PyInt_AsLong PyLong_AsLong macro
18 long value = PyInt_AsLong(o); in as_bounded_int()
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/include/
Dcext.h161 #define PyInt_AsSsize_t(arg) (int)PyInt_AsLong(arg)
/external/python/cpython2/Modules/_sqlite/
Drow.c93 _idx = PyInt_AsLong(idx); in pysqlite_row_subscript()
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/include/
Dcext.h199 #define PyInt_AsSsize_t(arg) (int)PyInt_AsLong(arg)
/external/tensorflow/tensorflow/python/platform/
Dbase.i173 $1 = static_cast<uint64>(PyInt_AsLong($input));
/external/tensorflow/tensorflow/python/client/
Dtf_session.i769 ranks_local.push_back((int) PyInt_AsLong(item));
794 types_local.push_back((TF_DataType) PyInt_AsLong(item));

1234