Lines Matching refs:es
73 #define SWAPINIT(a, es) \ argument
74 swaptype = ((char *)a - (char *)0) % sizeof(long) || es % sizeof(long) \
76 : es == sizeof(long) ? 0 : 1;
88 swapfunc(a, b, es, swaptype)
98 void qsort(void *aa, size_t n, size_t es, in qsort() argument
104 SWAPINIT(a, es); in qsort()
107 for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es) in qsort()
108 for (pl = pm; pl > (char *)a && cmp(pl - es, pl) > 0; pl -= es) in qsort()
109 swap(pl, pl - es); in qsort()
112 pm = (char *)a + (n / 2) * es; in qsort()
115 pn = (char *)a + (n - 1) * es; in qsort()
117 d = (n / 8) * es; in qsort()
125 pa = pb = (char *)a + es; in qsort()
127 pc = pd = (char *)a + (n - 1) * es; in qsort()
133 pa += es; in qsort()
135 pb += es; in qsort()
141 pd -= es; in qsort()
143 pc -= es; in qsort()
148 pb += es; in qsort()
149 pc -= es; in qsort()
152 for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es) in qsort()
153 for (pl = pm; pl > (char *)a && cmp(pl - es, pl) > 0; pl -= es) in qsort()
154 swap(pl, pl - es); in qsort()
157 pn = (char *)a + n * es; in qsort()
160 r = min(pd - pc, pn - pd - (int)es); in qsort()
162 if ((r = pb - pa) > (int)es) qsort(a, r / es, es, cmp); in qsort()
163 if ((r = pd - pc) > (int)es) { in qsort()
166 n = r / es; in qsort()