Lines Matching refs:es
47 #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \ argument
48 es % sizeof(long) ? 2 : es == sizeof(long) ? 0 : 1;
65 swapfunc(a, b, es, swaptype); \
83 yaffs_qsort(void *aa, size_t n, size_t es, in yaffs_qsort() argument
90 loop: SWAPINIT(a, es); in yaffs_qsort()
93 for (pm = (char *)a + es; pm < (char *) a + n * es; pm += es) in yaffs_qsort()
94 for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0; in yaffs_qsort()
95 pl -= es) in yaffs_qsort()
96 yswap(pl, pl - es); in yaffs_qsort()
99 pm = (char *)a + (n / 2) * es; in yaffs_qsort()
102 pn = (char *)a + (n - 1) * es; in yaffs_qsort()
104 d = (n / 8) * es; in yaffs_qsort()
112 pa = pb = (char *)a + es; in yaffs_qsort()
114 pc = pd = (char *)a + (n - 1) * es; in yaffs_qsort()
120 pa += es; in yaffs_qsort()
122 pb += es; in yaffs_qsort()
128 pd -= es; in yaffs_qsort()
130 pc -= es; in yaffs_qsort()
136 pb += es; in yaffs_qsort()
137 pc -= es; in yaffs_qsort()
140 for (pm = (char *) a + es; pm < (char *) a + n * es; pm += es) in yaffs_qsort()
141 for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0; in yaffs_qsort()
142 pl -= es) in yaffs_qsort()
143 yswap(pl, pl - es); in yaffs_qsort()
147 pn = (char *)a + n * es; in yaffs_qsort()
150 r = min((long)(pd - pc), (long)(pn - pd - es)); in yaffs_qsort()
153 if (r > es) in yaffs_qsort()
154 yaffs_qsort(a, r / es, es, cmp); in yaffs_qsort()
156 if (r > es) { in yaffs_qsort()
159 n = r / es; in yaffs_qsort()