/external/python/cpython3/Objects/ |
D | longobject.c | 386 if (PyLong_Check(vv)) { in PyLong_AsLongAndOverflow() 494 if (!PyLong_Check(vv)) { in PyLong_AsSsize_t() 549 if (!PyLong_Check(vv)) { in PyLong_AsUnsignedLong() 593 if (!PyLong_Check(vv)) { in PyLong_AsSize_t() 633 if (vv == NULL || !PyLong_Check(vv)) { in _PyLong_AsUnsignedLongMask() 666 if (PyLong_Check(op)) { in PyLong_AsUnsignedLongMask() 685 assert(PyLong_Check(v)); in _PyLong_Sign() 706 assert(PyLong_Check(v)); in _PyLong_NumBits() 853 assert(v != NULL && PyLong_Check(v)); in _PyLong_AsByteArray() 996 if (PyLong_Check(vv) && _PyLong_Sign(vv) < 0) in PyLong_AsVoidPtr() [all …]
|
D | sliceobject.c | 179 if (!PyLong_Check(r->step)) return -1; in PySlice_GetIndices() 185 if (!PyLong_Check(r->start)) return -1; in PySlice_GetIndices() 192 if (!PyLong_Check(r->stop)) return -1; in PySlice_GetIndices()
|
D | fileobject.c | 186 if (PyLong_Check(o)) { in PyObject_AsFileDescriptor() 198 if (PyLong_Check(fno)) { in PyObject_AsFileDescriptor()
|
/external/python/cpython3/Python/ |
D | ast_opt.c | 140 if (PyLong_Check(v) && PyLong_Check(w) && Py_SIZE(v) && Py_SIZE(w)) { in safe_multiply() 150 else if (PyLong_Check(v) && (PyTuple_Check(w) || PyFrozenSet_Check(w))) { in safe_multiply() 163 else if (PyLong_Check(v) && (PyUnicode_Check(w) || PyBytes_Check(w))) { in safe_multiply() 173 else if (PyLong_Check(w) && in safe_multiply() 186 if (PyLong_Check(v) && PyLong_Check(w) && Py_SIZE(v) && Py_SIZE(w) > 0) { in safe_power() 203 if (PyLong_Check(v) && PyLong_Check(w) && Py_SIZE(v) && Py_SIZE(w)) { in safe_lshift()
|
D | structmember.c | 282 if (PyLong_Check(v)) in PyMember_SetOne()
|
/external/python/cpython2/Objects/ |
D | longobject.c | 251 if (!PyLong_Check(vv)) { in PyLong_AsLongAndOverflow() 267 if (!PyLong_Check(vv)) { in PyLong_AsLongAndOverflow() 370 if (vv == NULL || !PyLong_Check(vv)) { in PyLong_AsSsize_t() 415 if (vv == NULL || !PyLong_Check(vv)) { in PyLong_AsUnsignedLong() 460 if (vv == NULL || !PyLong_Check(vv)) { in PyLong_AsUnsignedLongMask() 486 assert(PyLong_Check(v)); in _PyLong_Sign() 499 assert(PyLong_Check(v)); in _PyLong_NumBits() 649 assert(v != NULL && PyLong_Check(v)); in _PyLong_AsByteArray() 806 else if (PyLong_Check(vv) && _PyLong_Sign(vv) < 0) in PyLong_AsVoidPtr() 822 else if (PyLong_Check(vv) && _PyLong_Sign(vv) < 0) in PyLong_AsVoidPtr() [all …]
|
D | intobject.c | 167 if (PyLong_Check(io)) { in PyInt_AsLong() 218 if (PyLong_Check(op)) in PyInt_AsSsize_t() 237 if (PyLong_Check(io)) { in PyInt_AsSsize_t() 270 if (op && PyLong_Check(op)) in PyInt_AsUnsignedLongMask() 283 if (PyLong_Check(io)) { in PyInt_AsUnsignedLongMask() 315 if (op && PyLong_Check(op)) in PyInt_AsUnsignedLongLongMask() 328 if (PyLong_Check(io)) { in PyInt_AsUnsignedLongLongMask()
|
/external/tensorflow/tensorflow/python/lib/core/ |
D | py_seq_tensor.cc | 53 return PyLong_Check(obj) || in IsPyInt() 56 return PyInt_Check(obj) || PyLong_Check(obj) || in IsPyInt() 336 if (TF_PREDICT_TRUE(PyLong_Check(v) || IsPyDimension(v))) { in ConvertScalar() 376 if (TF_PREDICT_TRUE(PyLong_Check(v) || IsPyDimension(v))) { in ConvertScalar() 414 if (PyLong_Check(v) || IsPyDimension(v)) { in ConvertScalar() 476 if (PyLong_Check(v)) { in ConvertOneFloat()
|
/external/python/cpython2/Modules/ |
D | resource.c | 181 rl.rlim_cur = PyLong_Check(curobj) ? in resource_setrlimit() 185 rl.rlim_max = PyLong_Check(maxobj) ? in resource_setrlimit()
|
D | cgensupport.c | 75 else if (PyLong_Check(v)) { in extractdouble() 96 else if (PyLong_Check(v)) { in extractfloat()
|
D | _struct.c | 177 else if (PyLong_Check(v)) { in get_pylong() 178 assert(PyLong_Check(v)); in get_pylong() 202 assert(PyLong_Check(v)); in get_long() 221 assert(PyLong_Check(v)); in get_ulong() 242 assert(PyLong_Check(v)); in get_longlong() 261 assert(PyLong_Check(v)); in get_ulonglong() 683 assert(PyLong_Check(v)); in np_void_p()
|
D | fcntlmodule.c | 349 l.l_start = PyLong_Check(startobj) ? in fcntl_lockf() 360 l.l_len = PyLong_Check(lenobj) ? in fcntl_lockf()
|
/external/python/cpython2/Include/ |
D | intobject.h | 34 #define _PyAnyInt_Check(op) (PyInt_Check(op) || PyLong_Check(op))
|
D | longobject.h | 14 #define PyLong_Check(op) \ macro
|
/external/python/cpython3/Modules/ |
D | _struct.c | 131 if (!PyLong_Check(v)) { in get_pylong() 147 assert(PyLong_Check(v)); in get_pylong() 162 assert(PyLong_Check(v)); in get_long() 186 assert(PyLong_Check(v)); in get_ulong() 209 assert(PyLong_Check(v)); in get_longlong() 232 assert(PyLong_Check(v)); in get_ulonglong() 255 assert(PyLong_Check(v)); in get_ssize_t() 278 assert(PyLong_Check(v)); in get_size_t() 770 assert(PyLong_Check(v)); in np_void_p() 1859 if (PyLong_Check(v) && PyErr_ExceptionMatches(PyExc_OverflowError)) in s_pack_internal()
|
D | fcntlmodule.c | 405 l.l_start = PyLong_Check(startobj) ? in fcntl_lockf_impl() 416 l.l_len = PyLong_Check(lenobj) ? in fcntl_lockf_impl()
|
D | _posixsubprocess.c | 121 if (!PyLong_Check(py_fd)) { in _sanity_check_python_fd_sequence() 868 if (!PyLong_Check(elem)) { in subprocess_fork_exec()
|
/external/python/cpython3/PC/ |
D | winreg.c | 434 else if (PyLong_Check(ob)) { in PyHKEY_AsHKEY() 483 else if (PyLong_Check(obHandle)) { in PyWinObject_CloseHKEY() 490 else if (PyLong_Check(obHandle)) { in PyWinObject_CloseHKEY() 568 if (value != Py_None && !PyLong_Check(value)) in Py2Reg() 586 if (value != Py_None && !PyLong_Check(value)) in Py2Reg()
|
/external/python/cpython3/Include/ |
D | longobject.h | 14 #define PyLong_Check(op) \ macro
|
/external/python/cpython3/Modules/_sqlite/ |
D | row.c | 130 if (PyLong_Check(idx)) { in pysqlite_row_subscript()
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | multibytecodec.c | 328 !PyLong_Check(PyTuple_GET_ITEM(retobj, 1))) { in multibytecodec_encerror() 454 !PyLong_Check(PyTuple_GET_ITEM(retobj, 1))) { in multibytecodec_decerror() 1514 else if (PyLong_Check(sizeobj)) in _multibytecodec_MultibyteStreamReader_read_impl() 1543 else if (PyLong_Check(sizeobj)) in _multibytecodec_MultibyteStreamReader_readline_impl() 1573 else if (PyLong_Check(sizehintobj)) in _multibytecodec_MultibyteStreamReader_readlines_impl()
|
/external/python/cpython2/Modules/_sqlite/ |
D | row.c | 99 } else if (PyLong_Check(idx)) { in pysqlite_row_subscript()
|
/external/python/cpython3/Modules/_ctypes/ |
D | cfield.c | 1117 if (PyLong_Check(value)) in c_set() 1294 } else if (PyLong_Check(value)) { in z_set() 1332 if (PyLong_Check(value)) { in Z_set() 1444 if (!PyLong_Check(value)) { in P_set()
|
/external/python/cpython3/Modules/_decimal/ |
D | _decimal.c | 1291 else if (PyLong_Check(traps)) { in context_init() 1307 else if (PyLong_Check(status)) { in context_init() 2171 if (!PyLong_Check(v)) { in PyDecType_FromLong() 2199 if (!PyLong_Check(v)) { in PyDecType_FromLongExact() 2249 if (PyLong_Check(v)) { in PyDecType_FromFloatExact() 2440 if (!PyLong_Check(tmp)) { in dectuple_as_str() 2480 if (!PyLong_Check(tmp)) { in dectuple_as_str() 2521 if (!PyLong_Check(tmp)) { in dectuple_as_str() 2716 else if (PyLong_Check(v)) { in PyDecType_FromObjectExact() 2765 else if (PyLong_Check(v)) { in PyDec_FromObject() [all …]
|
/external/cronet/third_party/protobuf/python/google/protobuf/pyext/ |
D | repeated_scalar_container.cc | 275 if (PyLong_Check(slice)) { in Subscript() 427 if (PyLong_Check(slice)) { in AssSubscript()
|