Home
last modified time | relevance | path

Searched refs:Py_EQ (Results 1 – 25 of 100) sorted by relevance

1234

/external/python/cpython3/Modules/_sqlite/
Drow.c82 int eq = PyObject_RichCompareBool(left, right, Py_EQ); in equal_ignore_case()
192 if (opid != Py_EQ && opid != Py_NE) in pysqlite_row_richcompare()
197 int eq = PyObject_RichCompareBool(self->description, other->description, Py_EQ); in pysqlite_row_richcompare()
204 return PyBool_FromLong(opid != Py_EQ); in pysqlite_row_richcompare()
/external/python/cpython2/Objects/
Dcodeobject.c554 if ((op != Py_EQ && op != Py_NE) || in code_richcompare()
572 eq = PyObject_RichCompareBool(co->co_name, cp->co_name, Py_EQ); in code_richcompare()
582 eq = PyObject_RichCompareBool(co->co_code, cp->co_code, Py_EQ); in code_richcompare()
594 eq = PyObject_RichCompareBool(consts1, consts2, Py_EQ); in code_richcompare()
599 eq = PyObject_RichCompareBool(co->co_names, cp->co_names, Py_EQ); in code_richcompare()
601 eq = PyObject_RichCompareBool(co->co_varnames, cp->co_varnames, Py_EQ); in code_richcompare()
603 eq = PyObject_RichCompareBool(co->co_freevars, cp->co_freevars, Py_EQ); in code_richcompare()
605 eq = PyObject_RichCompareBool(co->co_cellvars, cp->co_cellvars, Py_EQ); in code_richcompare()
608 if (op == Py_EQ) in code_richcompare()
Dtupleobject.c375 Py_EQ); in tuplecontains()
529 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in tupleindex()
546 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in tuplecount()
596 wt->ob_item[i], Py_EQ); in tuplerichcompare()
610 case Py_EQ: cmp = vlen == wlen; break; in tuplerichcompare()
625 if (op == Py_EQ) { in tuplerichcompare()
Dmethodobject.c233 if (op != Py_EQ && op != Py_NE) { in meth_richcompare()
252 if (op == Py_EQ) in meth_richcompare()
Dlistobject.c442 Py_EQ); in list_contains()
2298 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in listindex()
2328 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in listcount()
2343 int cmp = PyObject_RichCompareBool(self->ob_item[i], v, Py_EQ); in listremove()
2381 if (Py_SIZE(vl) != Py_SIZE(wl) && (op == Py_EQ || op == Py_NE)) { in list_richcompare()
2384 if (op == Py_EQ) in list_richcompare()
2395 wl->ob_item[i], Py_EQ); in list_richcompare()
2411 case Py_EQ: cmp = vs == ws; break; in list_richcompare()
2426 if (op == Py_EQ) { in list_richcompare()
Diterobject.c187 Py_EQ); in calliter_iternext()
Ddictobject.c342 cmp = PyObject_RichCompareBool(startkey, key, Py_EQ); in lookdict()
374 cmp = PyObject_RichCompareBool(startkey, key, Py_EQ); in lookdict()
1846 thisaval, thisbval, Py_EQ); in characterize()
1954 cmp = PyObject_RichCompareBool(aval, bval, Py_EQ); in dict_equal()
1973 else if (op == Py_EQ || op == Py_NE) { in dict_richcompare()
1977 res = (cmp == (op == Py_EQ)) ? Py_True : Py_False; in dict_richcompare()
2968 case Py_EQ: in dictview_richcompare()
3230 result = PyObject_RichCompareBool(value, found, Py_EQ); in dictitems_contains()
/external/python/cpython3/Objects/
Dclassobject.c252 if ((op != Py_EQ && op != Py_NE) || in method_richcompare()
260 eq = PyObject_RichCompareBool(a->im_func, b->im_func, Py_EQ); in method_richcompare()
266 if (op == Py_EQ) in method_richcompare()
486 if ((op != Py_EQ && op != Py_NE) || in instancemethod_richcompare()
494 eq = PyObject_RichCompareBool(a->func, b->func, Py_EQ); in instancemethod_richcompare()
497 if (op == Py_EQ) in instancemethod_richcompare()
Dcodeobject.c836 if ((op != Py_EQ && op != Py_NE) || in code_richcompare()
845 eq = PyObject_RichCompareBool(co->co_name, cp->co_name, Py_EQ); in code_richcompare()
859 eq = PyObject_RichCompareBool(co->co_code, cp->co_code, Py_EQ); in code_richcompare()
871 eq = PyObject_RichCompareBool(consts1, consts2, Py_EQ); in code_richcompare()
876 eq = PyObject_RichCompareBool(co->co_names, cp->co_names, Py_EQ); in code_richcompare()
878 eq = PyObject_RichCompareBool(co->co_varnames, cp->co_varnames, Py_EQ); in code_richcompare()
880 eq = PyObject_RichCompareBool(co->co_freevars, cp->co_freevars, Py_EQ); in code_richcompare()
882 eq = PyObject_RichCompareBool(co->co_cellvars, cp->co_cellvars, Py_EQ); in code_richcompare()
885 if (op == Py_EQ) in code_richcompare()
Dinterpreteridobject.c176 if (op != Py_EQ && op != Py_NE) { in interpid_richcompare()
212 if ((op == Py_EQ && equal) || (op == Py_NE && !equal)) { in interpid_richcompare()
Drangeobject.c406 result = PyObject_RichCompareBool(tmp2, _PyLong_Zero, Py_EQ); in range_contains_long()
445 cmp_result = PyObject_RichCompareBool(r0->length, r1->length, Py_EQ); in range_equals()
453 cmp_result = PyObject_RichCompareBool(r0->start, r1->start, Py_EQ); in range_equals()
457 cmp_result = PyObject_RichCompareBool(r0->length, _PyLong_One, Py_EQ); in range_equals()
461 return PyObject_RichCompareBool(r0->step, r1->step, Py_EQ); in range_equals()
473 case Py_EQ: in range_richcompare()
526 cmp_result = PyObject_RichCompareBool(r->length, _PyLong_One, Py_EQ); in range_hash()
Dgenericaliasobject.c433 (op != Py_EQ && op != Py_NE)) in ga_richcompare()
439 PyObject *eq = ga_richcompare(a, b, Py_EQ); in ga_richcompare()
453 int eq = PyObject_RichCompareBool(aa->origin, bb->origin, Py_EQ); in ga_richcompare()
460 return PyObject_RichCompare(aa->args, bb->args, Py_EQ); in ga_richcompare()
Dtupleobject.c398 cmp = PyObject_RichCompareBool(PyTuple_GET_ITEM(a, i), el, Py_EQ); in tuplecontains()
582 int cmp = PyObject_RichCompareBool(self->ob_item[i], value, Py_EQ); in tuple_index_impl()
609 int cmp = PyObject_RichCompareBool(self->ob_item[i], value, Py_EQ); in tuple_count()
657 wt->ob_item[i], Py_EQ); in tuplerichcompare()
670 if (op == Py_EQ) { in tuplerichcompare()
Dlistobject.c419 cmp = PyObject_RichCompareBool(item, el, Py_EQ); in list_contains()
2140 k = PyObject_RichCompareBool(vt->ob_item[i], wt->ob_item[i], Py_EQ); in unsafe_tuple_compare()
2527 int cmp = PyObject_RichCompareBool(obj, value, Py_EQ); in list_index_impl()
2561 int cmp = PyObject_RichCompareBool(obj, value, Py_EQ); in list_count()
2591 int cmp = PyObject_RichCompareBool(obj, value, Py_EQ); in list_remove()
2628 if (Py_SIZE(vl) != Py_SIZE(wl) && (op == Py_EQ || op == Py_NE)) { in list_richcompare()
2630 if (op == Py_EQ) in list_richcompare()
2646 int k = PyObject_RichCompareBool(vitem, witem, Py_EQ); in list_richcompare()
2661 if (op == Py_EQ) { in list_richcompare()
Dmethodobject.c301 if ((op != Py_EQ && op != Py_NE) || in meth_richcompare()
312 if (op == Py_EQ) in meth_richcompare()
Diterobject.c224 ok = PyObject_RichCompareBool(it->it_sentinel, result, Py_EQ); in calliter_iternext()
/external/python/cpython2/Modules/_sqlite/
Drow.c198 if (opid != Py_EQ && opid != Py_NE) { in pysqlite_row_richcompare()
205 if ((opid == Py_EQ && res == Py_True) in pysqlite_row_richcompare()
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor_conversion.h57 bool result = PyObject_RichCompareBool(ptr, other.ptr, Py_EQ) > 0;
/external/python/cpython2/Include/
Dopcode.h163 enum cmp_op {PyCmp_LT=Py_LT, PyCmp_LE=Py_LE, PyCmp_EQ=Py_EQ, PyCmp_NE=Py_NE, PyCmp_GT=Py_GT, PyCmp_…
/external/python/cffi/c/
Dminibuffer.h202 if (self_size != other_size && (op == Py_EQ || op == Py_NE)) { in mb_richcompare()
224 case Py_EQ: cmp = cmp == 0; break; in mb_richcompare()
/external/python/cpython2/Modules/
Darraymodule.c521 if (Py_SIZE(va) != Py_SIZE(wa) && (op == Py_EQ || op == Py_NE)) { in array_richcompare()
523 if (op == Py_EQ) in array_richcompare()
541 k = PyObject_RichCompareBool(vi, wi, Py_EQ); in array_richcompare()
558 case Py_EQ: cmp = vs == ws; break; in array_richcompare()
573 if (op == Py_EQ) { in array_richcompare()
935 int cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_count()
957 int cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_index()
982 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_contains()
995 int cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_remove()
D_collectionsmodule.c574 cmp = PyObject_RichCompareBool(item, v, Py_EQ); in deque_count()
614 int cmp = PyObject_RichCompareBool(item, value, Py_EQ); in deque_remove()
1014 if (op == Py_EQ) { in deque_richcompare()
1041 b = PyObject_RichCompareBool(x, y, Py_EQ); in deque_richcompare()
1061 case Py_EQ: cmp = x == y; break; /* if we reached the end of both */ in deque_richcompare()
/external/python/cpython3/Modules/
Darraymodule.c685 if (Py_SIZE(va) != Py_SIZE(wa) && (op == Py_EQ || op == Py_NE)) { in array_richcompare()
687 if (op == Py_EQ) in array_richcompare()
708 case Py_EQ: cmp = result == 0; break; in array_richcompare()
730 k = PyObject_RichCompareBool(vi, wi, Py_EQ); in array_richcompare()
750 case Py_EQ: assert(vs == ws); cmp = 1; break; in array_richcompare()
765 if (op == Py_EQ) { in array_richcompare()
1108 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_array_count()
1141 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_array_index()
1163 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_contains()
1191 cmp = PyObject_RichCompareBool(selfi, v, Py_EQ); in array_array_remove()
/external/protobuf/python/google/protobuf/pyext/
Dextension_dict.cc326 if (opid != Py_EQ && opid != Py_NE) { in RichCompare()
334 if (equals ^ (opid == Py_EQ)) { in RichCompare()
/external/python/cpython3/Include/
Dobject.h536 #define Py_EQ 2 macro
549 case Py_EQ: if ((val1) == (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \

1234