Lines Matching refs:test_i
373 size_t min_i, max_i, test_i;
385 test_i = (min_i + max_i) / 2;
392 r = comp_fn(needle, *(void * const *)(base_p + (size * test_i)));
395 while (test_i > 0 &&
396 comp_fn(needle, *(void * const *)(base_p + (size * (test_i-1)))) == 0) {
397 test_i--;
399 return test_i;
402 if (test_i == 0) {
405 max_i = test_i - 1;
408 min_i = test_i + 1;