Home
last modified time | relevance | path

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

1234

/third_party/python/Objects/
Dlongobject.c389 if (PyLong_Check(vv)) { in PyLong_AsLongAndOverflow()
497 if (!PyLong_Check(vv)) { in PyLong_AsSsize_t()
552 if (!PyLong_Check(vv)) { in PyLong_AsUnsignedLong()
596 if (!PyLong_Check(vv)) { in PyLong_AsSize_t()
636 if (vv == NULL || !PyLong_Check(vv)) { in _PyLong_AsUnsignedLongMask()
669 if (PyLong_Check(op)) { in PyLong_AsUnsignedLongMask()
688 assert(PyLong_Check(v)); in _PyLong_Sign()
709 assert(PyLong_Check(v)); in _PyLong_NumBits()
856 assert(v != NULL && PyLong_Check(v)); in _PyLong_AsByteArray()
999 if (PyLong_Check(vv) && _PyLong_Sign(vv) < 0) in PyLong_AsVoidPtr()
[all …]
Dsliceobject.c179 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()
Dfileobject.c186 if (PyLong_Check(o)) { in PyObject_AsFileDescriptor()
198 if (PyLong_Check(fno)) { in PyObject_AsFileDescriptor()
Dabstract.c131 if (!PyLong_Check(result)) { in PyObject_LengthHint()
1425 if (PyLong_Check(item)) { in _PyNumber_Index()
1442 if (!PyLong_Check(result)) { in _PyNumber_Index()
1506 assert(PyLong_Check(value)); in PyNumber_AsSsize_t()
1555 if (!PyLong_Check(result)) { in PyNumber_Long()
1584 if (PyLong_Check(result)) { in PyNumber_Long()
Dbytesobject.c493 if (PyLong_Check(v)) in formatlong()
502 assert(PyLong_Check(iobj)); in formatlong()
753 if (!PyLong_Check(v)) { in _PyBytes_FormatEx()
793 if (!PyLong_Check(v)) { in _PyBytes_FormatEx()
1538 if (PyLong_Check(a) || PyLong_Check(b)) { in bytes_richcompare()
Dcomplexobject.c439 if (PyLong_Check(obj)) { in to_complex()
597 if (PyLong_Check(w)) { in complex_richcompare()
Denumobject.c56 assert(PyLong_Check(start)); in enum_new_impl()
/third_party/python/Python/
Dast_opt.c140 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()
Dstructmember.c282 if (PyLong_Check(v)) in PyMember_SetOne()
/third_party/alsa-lib/modules/mixer/simple/
Dpython.c76 if (PyLong_Check(o)) { in get_long()
140 if (PyLong_Check(res)) { in pcall()
206 if (PyLong_Check(t1) && PyLong_Check(t2)) { in get_x_range_ops()
260 if (PyLong_Check(t1)) { in get_x_ops()
320 if (PyLong_Check(t1)) { in ask_dB_vol_ops()
456 if (PyLong_Check(t1)) { in get_enum_item_ops()
543 if (PyLong_Check(val)) { in pymelem_set_caps()
1006 if (PyLong_Check(r)) { in alsa_mixer_simple_event()
/third_party/python/Modules/
D_struct.c131 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()
Dfcntlmodule.c405 l.l_start = PyLong_Check(startobj) ? in fcntl_lockf_impl()
416 l.l_len = PyLong_Check(lenobj) ? in fcntl_lockf_impl()
D_posixsubprocess.c121 if (!PyLong_Check(py_fd)) { in _sanity_check_python_fd_sequence()
868 if (!PyLong_Check(elem)) { in subprocess_fork_exec()
Ditertoolsmodule.c3280 if (!PyLong_Check(robj)) { in itertools_permutations_impl()
4184 fast_mode = (long_cnt == NULL || PyLong_Check(long_cnt)) && in itertools_count_impl()
4185 (long_step == NULL || PyLong_Check(long_step)); in itertools_count_impl()
4190 assert(PyLong_Check(long_cnt)); in itertools_count_impl()
4213 assert(PyLong_Check(long_step)); in itertools_count_impl()
4230 (PyLong_Check(long_step) && PyLong_AS_LONG(long_step) == 1)); in itertools_count_impl()
4300 if (PyLong_Check(lz->long_step)) { in count_repr()
/third_party/python/PC/
Dwinreg.c434 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()
/third_party/python/Include/
Dlongobject.h14 #define PyLong_Check(op) \ macro
/third_party/python/Modules/cjkcodecs/
Dmultibytecodec.c328 !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()
/third_party/python/Modules/_decimal/
D_decimal.c1291 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 …]
/third_party/python/Modules/_ctypes/
Dcfield.c1117 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()
D_ctypes.c580 if (!PyLong_Check(value)) { in CDataType_from_address()
743 if (!PyLong_Check(obj)) { in CDataType_in_dll()
1520 if (!PyLong_Check(length_attr)) { in PyCArrayType_new()
1834 if (PyLong_Check(value)) { in c_void_p_from_param()
2481 if (!ob || !PyLong_Check(ob)) { in make_funcptrtype_dict()
3519 if (PyLong_Check(obj)) { in _get_name()
3589 if (!PyLong_Check(obj)) { in PyCFuncPtr_FromDll()
3718 if (2 <= PyTuple_GET_SIZE(args) && PyLong_Check(PyTuple_GET_ITEM(args, 0))) in PyCFuncPtr_new()
3723 && (PyLong_Check(PyTuple_GET_ITEM(args, 0)))) { in PyCFuncPtr_new()
/third_party/python/Modules/_sqlite/
Drow.c130 if (PyLong_Check(idx)) { in pysqlite_row_subscript()
Dstatement.c154 } else if (PyLong_Check(parameter)) { in pysqlite_statement_bind_parameter()
/third_party/python/Modules/_io/
Dbytesio.c509 if (PyLong_Check(arg)) { in _io_BytesIO_readlines_impl()
846 if (!PyLong_Check(position_obj)) { in bytesio_setstate()
/third_party/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc290 if (PyLong_Check(slice)) { in Subscript()
448 if (PyLong_Check(slice)) { in Subscript()
/third_party/python/Modules/clinic/
D_hashopenssl.c.h1013 if (!PyLong_Check(args[2])) { in _hashlib_scrypt()
1023 if (!PyLong_Check(args[3])) { in _hashlib_scrypt()
1033 if (!PyLong_Check(args[4])) { in _hashlib_scrypt()

1234