Home
last modified time | relevance | path

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

1234

/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()
D_randommodule.c234 if (PyInt_Check(arg) || PyLong_Check(arg)) in random_seed()
409 if (!PyInt_Check(n) && !PyLong_Check(n)) { in random_jumpahead()
Ddlmodule.c110 if (PyInt_Check(v)) in dl_call()
Ddatetimemodule.c1198 assert(PyInt_Check(pyyear)); in wrap_strftime()
1804 if (PyInt_Check(right) || PyLong_Check(right)) in delta_multiply()
1808 else if (PyInt_Check(left) || PyLong_Check(left)) in delta_multiply()
1824 if (PyInt_Check(right) || PyLong_Check(right)) in delta_divide()
1853 if (PyInt_Check(num) || PyLong_Check(num)) { in accum()
1901 assert(PyInt_Check(factor) || PyLong_Check(factor)); in accum()
1902 if (PyInt_Check(factor)) in accum()
3965 if (PyInt_Check(p)) in datetime_strptime()
3975 if (good_timetuple && PyInt_Check(frac)) in datetime_strptime()
D_struct.c113 if (!PyInt_Check(v) && !PyLong_Check(v)) { in get_pylong()
153 if (!PyInt_Check(v) && !PyLong_Check(v)) { in get_pylong()
172 assert(PyInt_Check(v) || PyLong_Check(v)); in get_pylong()
173 if (PyInt_Check(v)) { in get_pylong()
/external/python/cpython2/Objects/
Dintobject.c149 if (op && PyInt_Check(op)) in PyInt_AsLong()
161 if (!PyInt_Check(io)) { in PyInt_AsLong()
213 if (PyInt_Check(op)) in PyInt_AsSsize_t()
233 if (!PyInt_Check(io)) { in PyInt_AsSsize_t()
265 if (op && PyInt_Check(op)) in PyInt_AsUnsignedLongMask()
279 if (!PyInt_Check(io)) { in PyInt_AsUnsignedLongMask()
310 if (op && PyInt_Check(op)) in PyInt_AsUnsignedLongLongMask()
324 if (!PyInt_Check(io)) { in PyInt_AsUnsignedLongLongMask()
426 if (PyInt_Check(obj)) { \
946 if (PyInt_Check(*pw)) { in int_coerce()
[all …]
Dsliceobject.c110 if (!PyInt_Check(r->step) && !PyLong_Check(r->step)) return -1; in PySlice_GetIndices()
116 if (!PyInt_Check(r->start) && !PyLong_Check(r->step)) return -1; in PySlice_GetIndices()
123 if (!PyInt_Check(r->stop) && !PyLong_Check(r->step)) return -1; in PySlice_GetIndices()
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 …]
Dabstract.c1495 if (PyInt_Check(item) || PyLong_Check(item)) {
1502 !PyInt_Check(result) && !PyLong_Check(result)) {
1577 if (integral && (!PyInt_Check(integral) &&
1589 if (integral && (!PyInt_Check(integral) &&
1635 if (res && (!PyInt_Check(res) && !PyLong_Check(res))) {
1644 if (PyInt_Check(o)) { /* An int subclass without nb_int */
1727 if (PyInt_Check(res)) {
1753 if (int_instance && PyInt_Check(int_instance)) {
1828 else if (PyInt_Check(index))
Dcomplexobject.c497 if (PyInt_Check(obj)) { in to_complex()
759 if (PyInt_Check(*pw)) { in complex_coerce()
799 if (PyInt_Check(w) || PyLong_Check(w) || in complex_richcompare()
812 if (PyInt_Check(w) || PyLong_Check(w)) { in complex_richcompare()
Denumobject.c34 assert(PyInt_Check(start) || PyLong_Check(start)); in enum_new()
Dfloatobject.c315 if (PyInt_Check(obj)) { in convert_to_double()
432 if (PyInt_Check(w) || PyLong_Check(w)) in float_richcompare()
442 else if (PyInt_Check(w)) { in float_richcompare()
962 if (PyInt_Check(*pw)) { in float_coerce()
/external/brotli/python/
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()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_seq_tensor.cc48 return PyInt_Check(obj) || PyLong_Check(obj) || in IsPyInt()
218 if (TF_PREDICT_TRUE(PyInt_Check(v))) { in ConvertOneInt64()
247 if (TF_PREDICT_TRUE(PyInt_Check(v))) { in ConvertOneInt32()
285 if (PyInt_Check(v)) { in ConvertOneFloat()
/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()
/external/python/cpython2/Include/
Dintobject.h30 #define PyInt_Check(op) \ macro
/external/tensorflow/tensorflow/python/
Dpywrap_tfe.i156 if (!PyInt_Check($input)) {
/external/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc52 #define PyInt_Check PyLong_Check macro
275 } else if (PyInt_Check(slice) || PyLong_Check(slice)) { in AssignSubscript()
Drepeated_scalar_container.cc298 if (PyInt_Check(slice)) { in Subscript()
450 if (PyInt_Check(slice)) { in AssSubscript()
/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c313 !(PyInt_Check(PyTuple_GET_ITEM(retobj, 1)) || in multibytecodec_encerror()
433 !(PyInt_Check(PyTuple_GET_ITEM(retobj, 1)) || in multibytecodec_decerror()
1352 else if (PyInt_Check(sizeobj)) in mbstreamreader_read()
1373 else if (PyInt_Check(sizeobj)) in mbstreamreader_readline()
1394 else if (PyInt_Check(sizehintobj)) in mbstreamreader_readlines()
/external/python/cpython2/Modules/_sqlite/
Drow.c92 if (PyInt_Check(idx)) { in pysqlite_row_subscript()
/external/tensorflow/tensorflow/python/platform/
Dbase.i172 if (PyInt_Check($input)) {
/external/python/cpython2/Python/
Dtraceback.c270 if (limitv && PyInt_Check(limitv)) { in PyTraceBack_Print()
Dsymtable.c312 assert(PyInt_Check(v)); in PyST_GetScope()
459 assert(PyInt_Check(v)); in analyze_cells()
537 assert(PyInt_Check(v)); in update_symbols()
540 assert(w && PyInt_Check(w)); in update_symbols()

1234