Searched refs:mid_idx (Results 1 – 2 of 2) sorted by relevance
36 size_t min_idx, max_idx, mid_idx; in run_lookup() local71 mid_idx = min_idx + ((max_idx - min_idx) >> 1); in run_lookup()72 r = run->runs + mid_idx; in run_lookup()75 max_idx = mid_idx - 1; in run_lookup()76 if (!mid_idx) in run_lookup()79 min_idx = mid_idx + 1; in run_lookup()81 *index = mid_idx; in run_lookup()
723 int min_idx = 0, mid_idx, max_idx = 0; in hdr_find_e() local765 min_idx = mid_idx + 1; in hdr_find_e()776 max_idx = mid_idx - 1; in hdr_find_e()791 mid_idx = (min_idx + max_idx) >> 1; in hdr_find_e()792 e = Add2Ptr(hdr, offs[mid_idx]); in hdr_find_e()