Lines Matching refs:test_i
50 size_t min_i, max_i, test_i;
62 test_i = (min_i + max_i) / 2;
69 r = comp_fn(needle, *(void * const *)(base_p + (size * test_i)));
72 while (test_i > 0 &&
73 comp_fn(needle, *(void * const *)(base_p + (size * (test_i-1)))) == 0) {
74 test_i--;
76 return test_i;
79 if (test_i == 0) {
82 max_i = test_i - 1;
85 min_i = test_i + 1;