Home
last modified time | relevance | path

Searched refs:PyInt_Check (Results 1 – 25 of 71) sorted by relevance

123

/aosp_15_r20/external/python/cpython2/Modules/
Dcgensupport.c44 if (args == NULL || !PyInt_Check(args)) { in PyArg_GetLong()
71 else if (PyInt_Check(v)) { in extractdouble()
92 else if (PyInt_Check(v)) { in extractfloat()
184 if (!PyInt_Check(w)) { in PyArg_GetLongArray()
197 if (!PyInt_Check(w)) { in PyArg_GetLongArray()
221 if (!PyInt_Check(w)) { in PyArg_GetShortArray()
234 if (!PyInt_Check(w)) { in PyArg_GetShortArray()
Dalmodule.c101 if (!PyInt_Check(item)) { in python2elem()
108 if (PyInt_Check(item)) in python2elem()
118 if (PyInt_Check(item)) in python2elem()
1188 if (!PyInt_Check(v)) { in alp_getstatus()
1430 if (!PyInt_Check(item)) { in al_GetParams()
1879 if (!PyInt_Check(v)) { in doParams()
Ditertoolsmodule.c3282 if ((cnt == -1 && PyErr_Occurred()) || !PyInt_Check(long_cnt)) { in count_new()
3305 if (!PyInt_Check(long_step) || in count_new()
3318 (PyInt_Check(long_step) && PyInt_AS_LONG(long_step) == 1)); in count_new()
3393 if (PyInt_Check(lz->long_step) && PyInt_AS_LONG(lz->long_step) == 1) { in count_repr()
/aosp_15_r20/external/python/cpython2/Objects/
Dintobject.c149 if (op && PyInt_Check(op)) in PyInt_AsLong()
166 if (!PyInt_Check(io)) { in PyInt_AsLong()
216 if (PyInt_Check(op)) in PyInt_AsSsize_t()
236 if (!PyInt_Check(io)) { in PyInt_AsSsize_t()
268 if (op && PyInt_Check(op)) in PyInt_AsUnsignedLongMask()
282 if (!PyInt_Check(io)) { in PyInt_AsUnsignedLongMask()
313 if (op && PyInt_Check(op)) in PyInt_AsUnsignedLongLongMask()
327 if (!PyInt_Check(io)) { in PyInt_AsUnsignedLongLongMask()
429 if (PyInt_Check(obj)) { \
949 if (PyInt_Check(*pw)) { in int_coerce()
[all …]
Dlongobject.c248 if(PyInt_Check(vv)) in PyLong_AsLongAndOverflow()
263 if(PyInt_Check(vv)) { in PyLong_AsLongAndOverflow()
416 if (vv != NULL && PyInt_Check(vv)) { in PyLong_AsUnsignedLong()
461 if (vv != NULL && PyInt_Check(vv)) in PyLong_AsUnsignedLongMask()
804 if (PyInt_Check(vv)) in PyLong_AsVoidPtr()
820 if (PyInt_Check(vv)) in PyLong_AsVoidPtr()
952 if (PyInt_Check(vv)) in PyLong_AsLongLong()
962 if (PyInt_Check(io)) { in PyLong_AsLongLong()
1066 if (PyInt_Check(vv)) in PyLong_AsLongLongAndOverflow()
1081 if(PyInt_Check(vv)) { in PyLong_AsLongLongAndOverflow()
[all …]
Dfloatobject.c314 if (PyInt_Check(obj)) { in convert_to_double()
441 else if (PyInt_Check(w)) { in float_richcompare()
961 if (PyInt_Check(*pw)) { in float_coerce()
Dabstract.c1641 if (PyInt_Check(o)) { /* An int subclass without nb_int */
1724 if (PyInt_Check(res)) {
1750 if (int_instance && PyInt_Check(int_instance)) {
1825 else if (PyInt_Check(index))
Dcomplexobject.c497 if (PyInt_Check(obj)) { in to_complex()
759 if (PyInt_Check(*pw)) { in complex_coerce()
/aosp_15_r20/external/brotli/python/
H A D_brotli.cc11 #define PyInt_Check PyLong_Check macro
27 if (!PyInt_Check(o)) { in mode_convertor()
49 if (!PyInt_Check(o)) { in quality_convertor()
63 if (!PyInt_Check(o)) { in lgwin_convertor()
77 if (!PyInt_Check(o)) { in lgblock_convertor()
/aosp_15_r20/external/pytorch/torch/csrc/
H A DTHP.h10 #ifndef PyInt_Check
11 #define PyInt_Check PyLong_Check macro
H A Dutils.h65 PyInt_Check(object)
/aosp_15_r20/external/python/cpython2/Include/
Dintobject.h30 #define PyInt_Check(op) \ macro
34 #define _PyAnyInt_Check(op) (PyInt_Check(op) || PyLong_Check(op))
/aosp_15_r20/external/tensorflow/tensorflow/python/lib/core/
H A Dpy_seq_tensor.cc56 return PyInt_Check(obj) || PyLong_Check(obj) || in IsPyInt()
331 if (TF_PREDICT_TRUE(PyInt_Check(v))) { in ConvertScalar()
371 if (TF_PREDICT_TRUE(PyInt_Check(v))) { in ConvertScalar()
410 if (TF_PREDICT_TRUE(PyInt_Check(v))) { in ConvertScalar()
471 if (PyInt_Check(v)) { in ConvertOneFloat()
/aosp_15_r20/external/python/cpython2/RISCOS/Modules/
Ddrawfmodule.c175 for(i=0;i<n;i++) if(!PyInt_Check(PyList_GetItem(pl,i))) size+=4; in DrawF_Path()
202 if(PyInt_Check(p)) in DrawF_Path()
337 if(m<0||!PyInt_Check(key)) return NULL; in DrawF_FontTable()
435 if(!PyInt_Check(par)) in SetWord()
444 if(!PyInt_Check(par)) in SetWord()
Dswimodule.c83 if(!PyInt_Check(q)) goto fail; in PyBlock_New()
251 if(!PyInt_Check(v)) in block_ass_item()
272 if(!PyInt_Check(q)) goto fail; in block_ass_slice()
/aosp_15_r20/external/python/cpython2/Python/
Dsymtable.c314 assert(PyInt_Check(v)); in PyST_GetScope()
461 assert(PyInt_Check(v)); in analyze_cells()
539 assert(PyInt_Check(v)); in update_symbols()
542 assert(w && PyInt_Check(w)); in update_symbols()
Dtraceback.c270 if (limitv && PyInt_Check(limitv)) { in PyTraceBack_Print()
/aosp_15_r20/external/trace-cmd/python/
H A Dctracecmd.i220 if (!PyInt_Check(result)) {
/aosp_15_r20/external/libnl/python/netlink/
H A Dcapi.i628 if (resobj && PyInt_Check(resobj)) in nl_recv_msg_handler()
664 if (resobj && PyInt_Check(resobj)) in nl_recv_err_handler()
/aosp_15_r20/external/python/cpython2/Modules/_sqlite/
Drow.c92 if (PyInt_Check(idx)) { in pysqlite_row_subscript()
Dstatement.c133 } else if (PyInt_Check(parameter)) { in pysqlite_statement_bind_parameter()
/aosp_15_r20/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c1350 else if (PyInt_Check(sizeobj)) in mbstreamreader_read()
1371 else if (PyInt_Check(sizeobj)) in mbstreamreader_readline()
1392 else if (PyInt_Check(sizehintobj)) in mbstreamreader_readlines()
/aosp_15_r20/external/python/cpython2/Mac/Modules/cf/
Dpycfbridge.c261 if (PyInt_Check(src)) { in PyCF_Python2CF_simple()
/aosp_15_r20/external/python/cpython2/Modules/_ctypes/
Dctypes.h18 #define PyIndex_Check(ob) PyInt_Check(ob)
/aosp_15_r20/external/python/cpython2/Doc/c-api/
Dint.rst24 .. c:function:: int PyInt_Check(PyObject *o)

123