Home | History | Annotate | Download | only in stdlib

Lines Matching refs:thunk

99 med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk
105 return CMP(thunk, a, b) < 0 ?
106 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a ))
107 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c ));
112 qsort_r(void *a, size_t n, size_t es, void *thunk, cmp_t *cmp)
114 #define thunk NULL
130 pl > (char *)a && CMP(thunk, pl - es, pl) > 0;
142 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk);
143 pm = med3(pm - d, pm, pm + d, cmp, thunk);
144 pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk);
146 pm = med3(pl, pm, pn, cmp, thunk);
153 while (pb <= pc && (cmp_result = CMP(thunk, pb, a)) <= 0) {
161 while (pb <= pc && (cmp_result = CMP(thunk, pc, a)) >= 0) {
179 pl > (char *)a && CMP(thunk, pl - es, pl) > 0;
197 qsort_r(a, d1 / es, es, thunk, cmp);
213 qsort_r(pn - d2, d2 / es, es, thunk, cmp);