/external/python/cpython3/Include/internal/ |
D | pycore_long.h | 197 assert(PyLong_Check(op)); in _PyLong_IsNonNegativeCompact() 204 assert(PyLong_Check(a)); in _PyLong_BothAreCompact() 205 assert(PyLong_Check(b)); in _PyLong_BothAreCompact() 230 assert(PyLong_Check(op)); in _PyLong_DigitCount() 238 assert(PyLong_Check(op)); in _PyLong_SignedDigitCount() 246 assert(PyLong_Check(op)); in _PyLong_CompactSign() 254 assert(PyLong_Check(op)); in _PyLong_NonCompactSign()
|
/external/pytorch/torch/csrc/ |
D | utils.h | 30 (PyFloat_Check(object) || PyLong_Check(object)) 34 : PyLong_Check(object) \ 38 #define THPUtils_checkReal_INT(object) PyLong_Check(object) 41 (PyLong_Check(object) \ 56 : PyLong_Check(object) \ 64 PyComplex_Check(object) || PyFloat_Check(object) || PyLong_Check(object) || \
|
D | THP.h | 11 #define PyInt_Check PyLong_Check
|
D | utils.cpp | 361 } else if (PyLong_Check(obj)) { in load() 400 } else if (PyLong_Check(obj)) { in load()
|
/external/python/cpython3/Modules/_testcapi/ |
D | watchers.c | 94 assert(PyLong_Check(kind)); in add_dict_watcher() 218 assert(PyLong_Check(kind)); in add_type_watcher() 348 assert(PyLong_Check(which_watcher)); in add_code_watcher() 378 assert(PyLong_Check(watcher_id)); in clear_code_watcher() 399 assert(PyLong_Check(watcher_id)); in get_code_watcher_num_created_events() 408 assert(PyLong_Check(watcher_id)); in get_code_watcher_num_destroyed_events()
|
D | long.c | 26 assert(PyLong_Check(arg)); in _testcapi_call_long_compact_api()
|
D | time.c | 7 if (!PyLong_Check(obj)) { in pytime_from_nanoseconds()
|
/external/python/cpython3/Objects/ |
D | longobject.c | 476 if (PyLong_Check(vv)) { in PyLong_AsLongAndOverflow() 586 if (!PyLong_Check(vv)) { in PyLong_AsSsize_t() 635 if (!PyLong_Check(vv)) { in PyLong_AsUnsignedLong() 689 if (!PyLong_Check(vv)) { in PyLong_AsSize_t() 727 if (vv == NULL || !PyLong_Check(vv)) { in _PyLong_AsUnsignedLongMask() 759 if (PyLong_Check(op)) { in PyLong_AsUnsignedLongMask() 778 assert(PyLong_Check(v)); in _PyLong_Sign() 804 assert(PyLong_Check(v)); in _PyLong_NumBits() 956 assert(v != NULL && PyLong_Check(v)); in _PyLong_AsByteArray() 1128 if (PyLong_Check(vv)) { in PyLong_AsNativeBytes() [all …]
|
D | sliceobject.c | 213 if (!PyLong_Check(r->step)) return -1; in PySlice_GetIndices() 219 if (!PyLong_Check(r->start)) return -1; in PySlice_GetIndices() 226 if (!PyLong_Check(r->stop)) return -1; in PySlice_GetIndices()
|
D | fileobject.c | 170 if (PyLong_Check(o)) { in PyObject_AsFileDescriptor() 189 if (PyLong_Check(fno)) { in PyObject_AsFileDescriptor()
|
D | rangeobject.c | 239 assert(PyLong_Check(start)); in compute_range_length() 240 assert(PyLong_Check(stop)); in compute_range_length() 241 assert(PyLong_Check(step)); in compute_range_length()
|
/external/pytorch/torch/csrc/utils/ |
D | python_numbers.h | 56 return PyLong_Check(obj) && !PyBool_Check(obj); in THPUtils_checkLong() 146 return PyFloat_Check(obj) || PyLong_Check(obj); in THPUtils_checkDouble()
|
/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/cpython3/Python/ |
D | ast_opt.c | 156 if (PyLong_Check(v) && PyLong_Check(w) && in safe_multiply() 168 else if (PyLong_Check(v) && PyTuple_Check(w)) { in safe_multiply() 180 else if (PyLong_Check(v) && (PyUnicode_Check(w) || PyBytes_Check(w))) { in safe_multiply() 190 else if (PyLong_Check(w) && in safe_multiply() 202 if (PyLong_Check(v) && PyLong_Check(w) && in safe_power() 221 if (PyLong_Check(v) && PyLong_Check(w) && in safe_lshift()
|
/external/python/cpython3/PC/ |
D | winreg.c | 453 else if (PyLong_Check(ob)) { in PyHKEY_AsHKEY() 503 else if (PyLong_Check(obHandle)) { in PyWinObject_CloseHKEY() 510 else if (PyLong_Check(obHandle)) { in PyWinObject_CloseHKEY() 589 if (value != Py_None && !PyLong_Check(value)) { in Py2Reg() 596 else if (PyLong_Check(value)) { in Py2Reg() 613 if (value != Py_None && !PyLong_Check(value)) { in Py2Reg() 620 else if (PyLong_Check(value)) { in Py2Reg()
|
/external/python/cpython3/Modules/ |
D | _struct.c | 138 if (!PyLong_Check(v)) { in get_pylong() 154 assert(PyLong_Check(v)); in get_pylong() 169 assert(PyLong_Check(v)); in get_long() 190 assert(PyLong_Check(v)); in get_ulong() 210 assert(PyLong_Check(v)); in get_longlong() 230 assert(PyLong_Check(v)); in get_ulonglong() 250 assert(PyLong_Check(v)); in get_ssize_t() 270 assert(PyLong_Check(v)); in get_size_t() 801 assert(PyLong_Check(v)); in np_void_p() 2004 if (PyLong_Check(v) && PyErr_ExceptionMatches(PyExc_OverflowError)) in s_pack_internal()
|
D | fcntlmodule.c | 413 l.l_start = PyLong_Check(startobj) ? in fcntl_lockf_impl() 424 l.l_len = PyLong_Check(lenobj) ? in fcntl_lockf_impl()
|
/external/python/cpython3/Include/ |
D | longobject.h | 12 #define PyLong_Check(op) \ macro
|
/external/python/cpython3/Modules/_sqlite/ |
D | row.c | 137 if (PyLong_Check(idx)) { in pysqlite_row_subscript()
|
/external/python/cpython3/Modules/_ctypes/ |
D | cfield.c | 1111 if (PyLong_Check(value)) in c_set() 1285 } else if (PyLong_Check(value)) { in z_set() 1322 if (PyLong_Check(value)) { in Z_set() 1434 if (!PyLong_Check(value)) { in P_set()
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | multibytecodec.c | 332 !PyLong_Check(PyTuple_GET_ITEM(retobj, 1))) { in multibytecodec_encerror() 457 !PyLong_Check(PyTuple_GET_ITEM(retobj, 1))) { in multibytecodec_decerror() 1547 else if (PyLong_Check(sizeobj)) in _multibytecodec_MultibyteStreamReader_read_impl() 1576 else if (PyLong_Check(sizeobj)) in _multibytecodec_MultibyteStreamReader_readline_impl() 1606 else if (PyLong_Check(sizehintobj)) in _multibytecodec_MultibyteStreamReader_readlines_impl()
|
/external/cronet/tot/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()
|
/external/python/cpython3/Modules/_io/ |
D | bytesio.c | 510 if (PyLong_Check(arg)) { in _io_BytesIO_readlines_impl() 846 if (!PyLong_Check(position_obj)) { in bytesio_setstate()
|
/external/cronet/stable/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()
|
/external/protobuf/python/google/protobuf/pyext/ |
D | repeated_scalar_container.cc | 275 if (PyLong_Check(slice)) { in Subscript() 427 if (PyLong_Check(slice)) { in AssSubscript()
|