Lines Matching refs:cmp_result
187 int cmp_result; in compute_range_length() local
193 cmp_result = PyObject_RichCompareBool(step, _PyLong_Zero, Py_GT); in compute_range_length()
194 if (cmp_result == -1) in compute_range_length()
197 if (cmp_result == 1) { in compute_range_length()
210 cmp_result = PyObject_RichCompareBool(lo, hi, Py_GE); in compute_range_length()
211 if (cmp_result != 0) { in compute_range_length()
213 if (cmp_result < 0) in compute_range_length()
268 int cmp_result; in compute_range_item() local
278 cmp_result = PyObject_RichCompareBool(arg, _PyLong_Zero, Py_LT); in compute_range_item()
279 if (cmp_result == -1) { in compute_range_item()
282 if (cmp_result == 1) { in compute_range_item()
297 cmp_result = PyObject_RichCompareBool(i, _PyLong_Zero, Py_LT); in compute_range_item()
298 if (cmp_result == 0) { in compute_range_item()
299 cmp_result = PyObject_RichCompareBool(i, r->length, Py_GE); in compute_range_item()
301 if (cmp_result == -1) { in compute_range_item()
305 if (cmp_result == 1) { in compute_range_item()
441 int cmp_result; in range_equals() local
445 cmp_result = PyObject_RichCompareBool(r0->length, r1->length, Py_EQ); in range_equals()
447 if (cmp_result != 1) in range_equals()
448 return cmp_result; in range_equals()
449 cmp_result = PyObject_Not(r0->length); in range_equals()
451 if (cmp_result != 0) in range_equals()
452 return cmp_result; in range_equals()
453 cmp_result = PyObject_RichCompareBool(r0->start, r1->start, Py_EQ); in range_equals()
455 if (cmp_result != 1) in range_equals()
456 return cmp_result; in range_equals()
457 cmp_result = PyObject_RichCompareBool(r0->length, _PyLong_One, Py_EQ); in range_equals()
459 if (cmp_result != 0) in range_equals()
460 return cmp_result; in range_equals()
507 int cmp_result; in range_hash() local
514 cmp_result = PyObject_Not(r->length); in range_hash()
515 if (cmp_result == -1) in range_hash()
517 if (cmp_result == 1) { in range_hash()
526 cmp_result = PyObject_RichCompareBool(r->length, _PyLong_One, Py_EQ); in range_hash()
527 if (cmp_result == -1) in range_hash()
529 if (cmp_result == 1) { in range_hash()