Lines Matching defs:thunk
87 void *thunk;
190 void *thunk
196 return CMP(thunk, a, b) < 0 ?
197 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a ))
198 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c ));
216 void *thunk,
218 #define thunk NULL
237 __heapsort_r(a, n, es, thunk, cmp);
248 pl > (char *)a && CMP(thunk, pl - es, pl) > 0;
259 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk);
260 pm = med3(pm - d, pm, pm + d, cmp, thunk);
261 pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk);
263 pm = med3(pl, pm, pn, cmp, thunk);
270 while (pb <= pc && (cmp_result = CMP(thunk, pb, a)) <= 0) {
278 while (pb <= pc && (cmp_result = CMP(thunk, pc, a)) >= 0) {
304 pl > (char *)a && CMP(thunk, pl - es, pl) > 0;
328 _psort(a, r, es, thunk, cmp, depth_limit, NULL);
351 shared->thunk,
372 psort_r(void *a, size_t n, size_t es, void *thunk, cmp_t *cmp)
389 shared.thunk = thunk;
438 qsort_r(a, n, es, thunk, cmp);