Home
last modified time | relevance | path

Searched refs:thunk (Results 1 – 1 of 1) sorted by relevance

/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dqsort.c75 med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk in med3()
81 return CMP(thunk, a, b) < 0 ? in med3()
82 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a )) in med3()
83 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c )); in med3()
88 qsort_r(void *a, size_t n, size_t es, void *thunk, cmp_t *cmp) in qsort_r() argument
90 #define thunk NULL in qsort_r()
105 pl > (char *)a && CMP(thunk, pl - es, pl) > 0; in qsort_r()
117 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk); in qsort_r()
118 pm = med3(pm - d, pm, pm + d, cmp, thunk); in qsort_r()
119 pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk); in qsort_r()
[all …]