Home
last modified time | relevance | path

Searched refs:PyLong_CheckExact (Results 1 – 25 of 52) sorted by relevance

123

/aosp_15_r20/external/python/cpython3/Python/
Dspecialize.c1136 if (PyLong_CheckExact(sub)) { in binary_subscr_fail_kind()
1145 if (PyLong_CheckExact(sub)) { in binary_subscr_fail_kind()
1154 if (PyLong_CheckExact(sub)) { in binary_subscr_fail_kind()
1163 if (PyLong_CheckExact(sub) && container_type->tp_as_sequence->sq_item) { in binary_subscr_fail_kind()
1195 if (PyLong_CheckExact(sub)) { in _Py_Specialize_BinarySubscr()
1204 if (PyLong_CheckExact(sub)) { in _Py_Specialize_BinarySubscr()
1270 if (PyLong_CheckExact(sub)) { in _Py_Specialize_StoreSubscr()
1303 if (PyLong_CheckExact(sub) && (((size_t)Py_SIZE(sub)) > 1)) { in _Py_Specialize_StoreSubscr()
1307 if (PyLong_CheckExact(sub)) { in _Py_Specialize_StoreSubscr()
1318 if (PyLong_CheckExact(sub)) { in _Py_Specialize_StoreSubscr()
[all …]
Dast.c158 if (PyLong_CheckExact(value) in validate_constant()
408 (allow_real && PyLong_CheckExact(value)) || in ensure_literal_number()
487 if (PyLong_CheckExact(literal) || PyFloat_CheckExact(literal) || in validate_pattern_match_value()
Dceval.c1963 DEOPT_IF(!PyLong_CheckExact(left), BINARY_OP);
1964 DEOPT_IF(!PyLong_CheckExact(right), BINARY_OP);
2003 DEOPT_IF(!PyLong_CheckExact(left), BINARY_OP);
2004 DEOPT_IF(!PyLong_CheckExact(right), BINARY_OP);
2118 DEOPT_IF(!PyLong_CheckExact(left), BINARY_OP);
2170 DEOPT_IF(!PyLong_CheckExact(sub), BINARY_SUBSCR);
2195 DEOPT_IF(!PyLong_CheckExact(sub), BINARY_SUBSCR);
2338 DEOPT_IF(!PyLong_CheckExact(sub), STORE_SUBSCR);
3783 DEOPT_IF(!PyLong_CheckExact(left), COMPARE_OP);
3784 DEOPT_IF(!PyLong_CheckExact(right), COMPARE_OP);
Dformatter_unicode.c972 && PyLong_CheckExact(value)) in format_long_internal()
1499 if (PyLong_CheckExact(obj)) in _PyLong_FormatAdvancedWriter()
/aosp_15_r20/external/python/cpython3/Modules/
Dmathmodule.c102 else if (PyLong_CheckExact(obj)) { \
3139 if (PyLong_CheckExact(result)) { in math_prod_impl()
3158 if (PyLong_CheckExact(item)) { in math_prod_impl()
3208 if (PyLong_CheckExact(item)) { in math_prod_impl()
3592 assert(PyLong_CheckExact(n) && PyLong_CheckExact(k)); in math_perm_impl()
3684 assert(PyLong_CheckExact(n) && PyLong_CheckExact(k)); in math_comb_impl()
Dsignalmodule.c188 assert(PyLong_CheckExact(dfl_ign_handler)); in compare_handler()
189 if (!PyLong_CheckExact(func)) { in compare_handler()
D_randommodule.c298 if (PyLong_CheckExact(arg)) { in random_seed()
D_csv.c228 if (!PyLong_CheckExact(src)) { in _set_int()
1587 if (!PyLong_CheckExact(new_limit)) { in _csv_field_size_limit_impl()
D_cursesmodule.c270 else if (PyLong_CheckExact(obj)) { in PyCurses_ConvertToChtype()
335 else if (PyLong_CheckExact(obj)) { in PyCurses_ConvertToCchar_t()
4461 else if (PyLong_CheckExact(obj)) { in PyCurses_ConvertToWchar_t()
/aosp_15_r20/external/python/cpython2/Include/
Dintobject.h35 #define _PyAnyInt_CheckExact(op) (PyInt_CheckExact(op) || PyLong_CheckExact(op))
Dlongobject.h16 #define PyLong_CheckExact(op) (Py_TYPE(op) == &PyLong_Type) macro
/aosp_15_r20/external/python/cpython3/Objects/
Drangeobject.c428 if (PyLong_CheckExact(ob) || PyBool_Check(ob)) in range_contains()
559 if (PyLong_CheckExact(ob) || PyBool_Check(ob)) { in range_count()
578 if (!PyLong_CheckExact(ob) && !PyBool_Check(ob)) { in range_index()
Dabstract.c789 if (PyLong_CheckExact(obj)) { in PyObject_Format()
1427 if (!result || PyLong_CheckExact(result)) { in _PyNumber_Index()
1458 if (result != NULL && !PyLong_CheckExact(result)) { in PyNumber_Index()
1529 if (PyLong_CheckExact(o)) { in PyNumber_Long()
1539 if (!result || PyLong_CheckExact(result)) { in PyNumber_Long()
1574 if (result == NULL || PyLong_CheckExact(result)) { in PyNumber_Long()
Dinterpreteridobject.c196 else if (PyLong_CheckExact(other)) { in interpid_richcompare()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/include/python3.11/
Dlongobject.h14 #define PyLong_CheckExact(op) Py_IS_TYPE(op, &PyLong_Type) macro
/aosp_15_r20/external/python/cpython3/Include/
Dlongobject.h14 #define PyLong_CheckExact(op) Py_IS_TYPE(op, &PyLong_Type) macro
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/include/python3.11/
Dlongobject.h14 #define PyLong_CheckExact(op) Py_IS_TYPE(op, &PyLong_Type) macro
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/include/python3.11/
Dlongobject.h14 #define PyLong_CheckExact(op) Py_IS_TYPE(op, &PyLong_Type) macro
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/include/python3.11/
Dlongobject.h14 #define PyLong_CheckExact(op) Py_IS_TYPE(op, &PyLong_Type) macro
/aosp_15_r20/external/pytorch/torch/csrc/utils/
H A Dpython_numbers.h41 return PyLong_CheckExact(obj) && !PyBool_Check(obj); in THPUtils_checkLongExact()
/aosp_15_r20/external/libchrome/third_party/markupsafe/
H A D_speedups.c123 if (PyLong_CheckExact(text) || in escape()
/aosp_15_r20/external/python/markupsafe/src/markupsafe/
D_speedups.c200 if (PyLong_CheckExact(text) || in escape()
/aosp_15_r20/external/python/cpython3/Modules/_sqlite/
Dcursor.c543 if (PyLong_CheckExact(parameter)) { in bind_param()
625 if (PyLong_CheckExact(obj) || PyFloat_CheckExact(obj) in need_adapt()
/aosp_15_r20/external/python/cpython2/Modules/_sqlite/
Dstatement.c123 } else if (PyLong_CheckExact(parameter)) { in pysqlite_statement_bind_parameter()
/aosp_15_r20/external/python/cpython2/Doc/c-api/
Dlong.rst33 .. c:function:: int PyLong_CheckExact(PyObject *p)

123