Lines Matching defs:es
89 #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \
90 es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;
107 swapfunc(a, b, es, swaptype)
121 qsort(void *a, size_t n, size_t es, int (*cmp)(const void *, const void *))
127 loop: SWAPINIT(a, es);
130 for (pm = (char *)a + es; pm < (char *) a + n * es; pm += es)
131 for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0;
132 pl -= es)
133 swap(pl, pl - es);
136 pm = (char *)a + (n / 2) * es;
139 pn = (char *)a + (n - 1) * es;
141 d = (n / 8) * es;
149 pa = pb = (char *)a + es;
151 pc = pd = (char *)a + (n - 1) * es;
157 pa += es;
159 pb += es;
165 pd -= es;
167 pc -= es;
173 pb += es;
174 pc -= es;
177 for (pm = (char *)a + es; pm < (char *) a + n * es; pm += es)
178 for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0;
179 pl -= es)
180 swap(pl, pl - es);
184 pn = (char *)a + n * es;
187 r = min((size_t)(pd - pc), pn - pd - es);
189 if ((size_t)(r = pb - pa) > es)
190 qsort(a, r / es, es, cmp);
191 if ((size_t)(r = pd - pc) > es) {
194 n = r / es;
197 /* qsort(pn - r, r / es, es, cmp);*/