Lines Matching refs:cmp
93 int (*cmp)(const void *, const void *)) { in med3()
94 return cmp(a, b) < 0 ? (cmp(b, c) < 0 ? b : (cmp(a, c) < 0 ? c : a)) in med3()
95 : (cmp(b, c) > 0 ? b : (cmp(a, c) < 0 ? a : c)); in med3()
99 int (*cmp)(const void *, const void *)) { in qsort()
108 for (pl = pm; pl > (char *)a && cmp(pl - es, pl) > 0; pl -= es) in qsort()
118 pl = med3(pl, pl + d, pl + 2 * d, cmp); in qsort()
119 pm = med3(pm - d, pm, pm + d, cmp); in qsort()
120 pn = med3(pn - 2 * d, pn - d, pn, cmp); in qsort()
122 pm = med3(pl, pm, pn, cmp); in qsort()
129 while (pb <= pc && (r = cmp(pb, a)) <= 0) { in qsort()
137 while (pb <= pc && (r = cmp(pc, a)) >= 0) { in qsort()
153 for (pl = pm; pl > (char *)a && cmp(pl - es, pl) > 0; pl -= es) in qsort()
162 if ((r = pb - pa) > (int)es) qsort(a, r / es, es, cmp); in qsort()