Lines Matching refs:cmp
49 med3(char *a, char *b, char *c, int (*cmp)(const void *, const void *)) in med3()
51 return cmp(a, b) < 0 ? in med3()
52 (cmp(b, c) < 0 ? b : (cmp(a, c) < 0 ? c : a)) in med3()
53 : (cmp(b, c) > 0 ? b : (cmp(a, c) < 0 ? a : c)); in med3()
62 int (*cmp)(const void *, const void *)) in yaffs_qsort()
72 for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0; in yaffs_qsort()
83 pl = med3(pl, pl + d, pl + 2 * d, cmp); in yaffs_qsort()
84 pm = med3(pm - d, pm, pm + d, cmp); in yaffs_qsort()
85 pn = med3(pn - 2 * d, pn - d, pn, cmp); in yaffs_qsort()
87 pm = med3(pl, pm, pn, cmp); in yaffs_qsort()
94 while (pb <= pc && (r = cmp(pb, a)) <= 0) { in yaffs_qsort()
102 while (pb <= pc && (r = cmp(pc, a)) >= 0) { in yaffs_qsort()
119 for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0; in yaffs_qsort()
132 yaffs_qsort(a, r / es, es, cmp); in yaffs_qsort()