Home
last modified time | relevance | path

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

12345

/external/python/cpython3/Python/
Dast_opt.c167 if (PyLong_Check(v) && PyLong_Check(w) && Py_SIZE(v) && Py_SIZE(w)) { in safe_multiply()
177 else if (PyLong_Check(v) && (PyTuple_Check(w) || PyFrozenSet_Check(w))) { in safe_multiply()
190 else if (PyLong_Check(v) && (PyUnicode_Check(w) || PyBytes_Check(w))) { in safe_multiply()
200 else if (PyLong_Check(w) && in safe_multiply()
213 if (PyLong_Check(v) && PyLong_Check(w) && Py_SIZE(v) && Py_SIZE(w) > 0) { in safe_power()
230 if (PyLong_Check(v) && PyLong_Check(w) && Py_SIZE(v) && Py_SIZE(w)) { in safe_lshift()
Dstructmember.c278 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.cc46 return PyLong_Check(obj) || in IsPyInt()
49 return PyInt_Check(obj) || PyLong_Check(obj) || in IsPyInt()
298 if (TF_PREDICT_TRUE(PyLong_Check(v) || IsPyDimension(v))) { in ConvertOneInt64()
326 if (PyLong_Check(v) || IsPyDimension(v)) { in ConvertOneInt32()
382 if (PyLong_Check(v)) { in ConvertOneFloat()
/external/python/cpython3/Objects/
Dlongobject.c168 if (!PyLong_Check(result)) { in _PyLong_FromNbInt()
419 if (PyLong_Check(vv)) { in PyLong_AsLongAndOverflow()
527 if (!PyLong_Check(vv)) { in PyLong_AsSsize_t()
582 if (!PyLong_Check(vv)) { in PyLong_AsUnsignedLong()
626 if (!PyLong_Check(vv)) { in PyLong_AsSize_t()
666 if (vv == NULL || !PyLong_Check(vv)) { in _PyLong_AsUnsignedLongMask()
699 if (PyLong_Check(op)) { in PyLong_AsUnsignedLongMask()
718 assert(PyLong_Check(v)); in _PyLong_Sign()
752 assert(PyLong_Check(v)); in _PyLong_NumBits()
899 assert(v != NULL && PyLong_Check(v)); in _PyLong_AsByteArray()
[all …]
Dsliceobject.c172 if (!PyLong_Check(r->step)) return -1; in PySlice_GetIndices()
178 if (!PyLong_Check(r->start)) return -1; in PySlice_GetIndices()
185 if (!PyLong_Check(r->stop)) return -1; in PySlice_GetIndices()
Dfileobject.c183 if (PyLong_Check(o)) { in PyObject_AsFileDescriptor()
193 if (PyLong_Check(fno)) { in PyObject_AsFileDescriptor()
Dabstract.c124 if (!PyLong_Check(result)) { in PyObject_LengthHint()
1262 if (PyLong_Check(item)) { in PyNumber_Index()
1275 if (!PyLong_Check(result)) { in PyNumber_Index()
1319 assert(PyLong_Check(value)); in PyNumber_AsSsize_t()
1373 if (PyLong_Check(result)) { in PyNumber_Long()
1488 if (PyLong_Check(index)) in PyNumber_ToBase()
/external/python/cpython3/Modules/
D_struct.c110 if (!PyLong_Check(v)) { in get_pylong()
126 assert(PyLong_Check(v)); in get_pylong()
141 assert(PyLong_Check(v)); in get_long()
165 assert(PyLong_Check(v)); in get_ulong()
188 assert(PyLong_Check(v)); in get_longlong()
211 assert(PyLong_Check(v)); in get_ulonglong()
234 assert(PyLong_Check(v)); in get_ssize_t()
257 assert(PyLong_Check(v)); in get_size_t()
748 assert(PyLong_Check(v)); in np_void_p()
1800 if (PyLong_Check(v) && PyErr_ExceptionMatches(PyExc_OverflowError)) in s_pack_internal()
Dfcntlmodule.c399 l.l_start = PyLong_Check(startobj) ? in fcntl_lockf_impl()
410 l.l_len = PyLong_Check(lenobj) ? in fcntl_lockf_impl()
/external/python/cpython2/Modules/
Dcgensupport.c75 else if (PyLong_Check(v)) { in extractdouble()
96 else if (PyLong_Check(v)) { in extractfloat()
Dresource.c181 rl.rlim_cur = PyLong_Check(curobj) ? in resource_setrlimit()
185 rl.rlim_max = PyLong_Check(maxobj) ? in resource_setrlimit()
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/PC/
Dwinreg.c429 else if (PyLong_Check(ob)) { in PyHKEY_AsHKEY()
479 else if (PyLong_Check(obHandle)) { in PyWinObject_CloseHKEY()
486 else if (PyLong_Check(obHandle)) { in PyWinObject_CloseHKEY()
549 if (value != Py_None && !PyLong_Check(value)) in Py2Reg()
567 if (value != Py_None && !PyLong_Check(value)) in Py2Reg()
/external/python/cpython3/Include/
Dlongobject.h14 #define PyLong_Check(op) \ macro
/external/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc52 #define PyInt_Check PyLong_Check
275 } else if (PyInt_Check(slice) || PyLong_Check(slice)) { in AssignSubscript()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c305 !PyLong_Check(PyTuple_GET_ITEM(retobj, 1))) { in multibytecodec_encerror()
431 !PyLong_Check(PyTuple_GET_ITEM(retobj, 1))) { in multibytecodec_decerror()
1382 else if (PyLong_Check(sizeobj)) in _multibytecodec_MultibyteStreamReader_read_impl()
1411 else if (PyLong_Check(sizeobj)) in _multibytecodec_MultibyteStreamReader_readline_impl()
1441 else if (PyLong_Check(sizehintobj)) in _multibytecodec_MultibyteStreamReader_readlines_impl()
/external/python/cpython3/Modules/_sqlite/
Drow.c91 if (PyLong_Check(idx)) { in pysqlite_row_subscript()
/external/python/cpython3/Modules/_ctypes/
Dcfield.c1148 if (PyLong_Check(value)) in c_set()
1326 } else if (PyLong_Check(value)) { in z_set()
1364 if (PyLong_Check(value)) { in Z_set()
1474 if (!PyLong_Check(value)) { in P_set()
/external/python/cpython3/Modules/_decimal/
D_decimal.c1276 else if (PyLong_Check(traps)) { in context_init()
1292 else if (PyLong_Check(status)) { in context_init()
2027 if (!PyLong_Check(v)) { in PyDecType_FromLong()
2055 if (!PyLong_Check(v)) { in PyDecType_FromLongExact()
2105 if (PyLong_Check(v)) { in PyDecType_FromFloatExact()
2296 if (!PyLong_Check(tmp)) { in dectuple_as_str()
2336 if (!PyLong_Check(tmp)) { in dectuple_as_str()
2377 if (!PyLong_Check(tmp)) { in dectuple_as_str()
2572 else if (PyLong_Check(v)) { in PyDecType_FromObjectExact()
2621 else if (PyLong_Check(v)) { in PyDec_FromObject()
[all …]
/external/python/cpython2/Modules/_sqlite/
Drow.c99 } else if (PyLong_Check(idx)) { in pysqlite_row_subscript()

12345