Home
last modified time | relevance | path

Searched refs:PyLong_Check (Results 1 – 25 of 124) sorted by relevance

12345

/external/python/cpython3/Objects/
Dlongobject.c152 if (!PyLong_Check(result)) { in _PyLong_FromNbInt()
205 if (!PyLong_Check(result)) { in _PyLong_FromNbIndexOrNbInt()
510 if (PyLong_Check(vv)) { in PyLong_AsLongAndOverflow()
618 if (!PyLong_Check(vv)) { in PyLong_AsSsize_t()
673 if (!PyLong_Check(vv)) { in PyLong_AsUnsignedLong()
717 if (!PyLong_Check(vv)) { in PyLong_AsSize_t()
757 if (vv == NULL || !PyLong_Check(vv)) { in _PyLong_AsUnsignedLongMask()
790 if (PyLong_Check(op)) { in PyLong_AsUnsignedLongMask()
809 assert(PyLong_Check(v)); in _PyLong_Sign()
823 assert(PyLong_Check(v)); in _PyLong_NumBits()
[all …]
Dsliceobject.c173 if (!PyLong_Check(r->step)) return -1; in PySlice_GetIndices()
179 if (!PyLong_Check(r->start)) return -1; in PySlice_GetIndices()
186 if (!PyLong_Check(r->stop)) return -1; in PySlice_GetIndices()
Dfileobject.c186 if (PyLong_Check(o)) { in PyObject_AsFileDescriptor()
198 if (PyLong_Check(fno)) { in PyObject_AsFileDescriptor()
/external/python/cpython3/Python/
Dast_opt.c128 if (PyLong_Check(v) && PyLong_Check(w) && Py_SIZE(v) && Py_SIZE(w)) { in safe_multiply()
138 else if (PyLong_Check(v) && (PyTuple_Check(w) || PyFrozenSet_Check(w))) { in safe_multiply()
151 else if (PyLong_Check(v) && (PyUnicode_Check(w) || PyBytes_Check(w))) { in safe_multiply()
161 else if (PyLong_Check(w) && in safe_multiply()
174 if (PyLong_Check(v) && PyLong_Check(w) && Py_SIZE(v) && Py_SIZE(w) > 0) { in safe_power()
191 if (PyLong_Check(v) && PyLong_Check(w) && Py_SIZE(v) && Py_SIZE(w)) { in safe_lshift()
Dstructmember.c277 if (PyLong_Check(v)) in PyMember_SetOne()
/external/python/cpython2/Objects/
Dlongobject.c251 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 …]
Dintobject.c167 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/
Dpy_seq_tensor.cc53 return PyLong_Check(obj) || in IsPyInt()
56 return PyInt_Check(obj) || PyLong_Check(obj) || in IsPyInt()
335 if (TF_PREDICT_TRUE(PyLong_Check(v) || IsPyDimension(v))) { in ConvertScalar()
375 if (TF_PREDICT_TRUE(PyLong_Check(v) || IsPyDimension(v))) { in ConvertScalar()
412 if (PyLong_Check(v) || IsPyDimension(v)) { in ConvertScalar()
475 if (PyLong_Check(v)) { in ConvertOneFloat()
/external/llvm-project/lldb/tools/intel-features/scripts/
Dpython-typemaps.txt7 } else if (PyLong_Check($input)) {
/external/python/cpython2/Modules/
Dresource.c181 rl.rlim_cur = PyLong_Check(curobj) ? in resource_setrlimit()
185 rl.rlim_max = PyLong_Check(maxobj) ? in resource_setrlimit()
Dcgensupport.c75 else if (PyLong_Check(v)) { in extractdouble()
96 else if (PyLong_Check(v)) { in extractfloat()
D_struct.c177 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()
Dfcntlmodule.c349 l.l_start = PyLong_Check(startobj) ? in fcntl_lockf()
360 l.l_len = PyLong_Check(lenobj) ? in fcntl_lockf()
/external/python/cpython2/Include/
Dintobject.h34 #define _PyAnyInt_Check(op) (PyInt_Check(op) || PyLong_Check(op))
Dlongobject.h14 #define PyLong_Check(op) \ macro
/external/python/cpython3/Modules/
D_struct.c121 if (!PyLong_Check(v)) { in get_pylong()
137 assert(PyLong_Check(v)); in get_pylong()
152 assert(PyLong_Check(v)); in get_long()
176 assert(PyLong_Check(v)); in get_ulong()
199 assert(PyLong_Check(v)); in get_longlong()
222 assert(PyLong_Check(v)); in get_ulonglong()
245 assert(PyLong_Check(v)); in get_ssize_t()
268 assert(PyLong_Check(v)); in get_size_t()
759 assert(PyLong_Check(v)); in np_void_p()
1840 if (PyLong_Check(v) && PyErr_ExceptionMatches(PyExc_OverflowError)) in s_pack_internal()
Dfcntlmodule.c417 l.l_start = PyLong_Check(startobj) ? in fcntl_lockf_impl()
428 l.l_len = PyLong_Check(lenobj) ? in fcntl_lockf_impl()
D_posixsubprocess.c151 if (!PyLong_Check(py_fd)) { in _sanity_check_python_fd_sequence()
784 if (!PyLong_Check(elem)) { in subprocess_fork_exec()
/external/python/cpython3/PC/
Dwinreg.c433 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/
Dlongobject.h14 #define PyLong_Check(op) \ macro
/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
DPythonDataObjects.cpp76 if (!PyLong_Check(m_py_obj)) { in AsLongLong()
92 if (!PyLong_Check(m_py_obj)) { in AsUnsignedLongLong()
109 if (!PyLong_Check(m_py_obj)) { in AsModuloUnsignedLongLong()
493 return PyLong_Check(py_obj); in Check()
495 return PyLong_Check(py_obj) || PyInt_Check(py_obj); in Check()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c295 !PyLong_Check(PyTuple_GET_ITEM(retobj, 1))) { in multibytecodec_encerror()
421 !PyLong_Check(PyTuple_GET_ITEM(retobj, 1))) { in multibytecodec_decerror()
1543 else if (PyLong_Check(sizeobj)) in _multibytecodec_MultibyteStreamReader_read_impl()
1572 else if (PyLong_Check(sizeobj)) in _multibytecodec_MultibyteStreamReader_readline_impl()
1602 else if (PyLong_Check(sizehintobj)) in _multibytecodec_MultibyteStreamReader_readlines_impl()
/external/python/cpython3/Modules/_sqlite/
Drow.c113 if (PyLong_Check(idx)) { in pysqlite_row_subscript()
/external/python/cpython2/Modules/_sqlite/
Drow.c99 } else if (PyLong_Check(idx)) { in pysqlite_row_subscript()
/external/python/cpython3/Modules/_ctypes/
Dcfield.c1145 if (PyLong_Check(value)) in c_set()
1325 } else if (PyLong_Check(value)) { in z_set()
1363 if (PyLong_Check(value)) { in Z_set()
1475 if (!PyLong_Check(value)) { in P_set()

12345