Searched refs:mid (Results 1 – 5 of 5) sorted by relevance
/ndk/tests/build/test-gnustl-chrono/jni/ |
D | hanoi.c | 3 void hanoi(int from, int to, int mid, int n, void (*callback)(int, int)) { in hanoi() argument 7 hanoi(from, mid, to, n - 1, callback); in hanoi() 9 hanoi(mid, to, from, n - 1, callback); in hanoi()
|
D | hanoi.h | 8 extern void hanoi(int from, int to, int mid, int n,
|
/ndk/sources/host-tools/sed-4.2.1/lib/ |
D | regex_internal.c | 610 Idx low = 0, high = pstr->valid_len, mid; in re_string_reconstruct() local 613 mid = (high + low) / 2; in re_string_reconstruct() 614 if (pstr->offsets[mid] > offset) in re_string_reconstruct() 615 high = mid; in re_string_reconstruct() 616 else if (pstr->offsets[mid] < offset) in re_string_reconstruct() 617 low = mid + 1; in re_string_reconstruct() 622 if (pstr->offsets[mid] < offset) in re_string_reconstruct() 623 ++mid; in re_string_reconstruct() 624 pstr->tip_context = re_string_context_at (pstr, mid - 1, in re_string_reconstruct() 631 && mid == offset && pstr->offsets[mid] == offset) in re_string_reconstruct() [all …]
|
D | regexec.c | 4323 Idx left, right, mid, last; in search_cur_bkref_entry() local 4327 mid = (left + right) / 2; in search_cur_bkref_entry() 4328 if (mctx->bkref_ents[mid].str_idx < str_idx) in search_cur_bkref_entry() 4329 left = mid + 1; in search_cur_bkref_entry() 4331 right = mid; in search_cur_bkref_entry()
|
/ndk/sources/host-tools/nawk-20071023/ |
D | lex.c | 439 int cond, low, mid, high; in binsearch() local 444 mid = (low + high) / 2; in binsearch() 445 if ((cond = strcmp(w, kp[mid].word)) < 0) in binsearch() 446 high = mid - 1; in binsearch() 448 low = mid + 1; in binsearch() 450 return mid; in binsearch()
|