Lines Matching refs:es
66 #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \ argument
67 es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;
86 swapfunc(a, b, es, swaptype)
101 solv_sort(void *a, size_t n, size_t es, cmp_t *cmp, void *thunk) in solv_sort() argument
108 loop: SWAPINIT(a, es); in solv_sort()
111 for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es) in solv_sort()
113 pl > (char *)a && CMP(thunk, pl - es, pl) > 0; in solv_sort()
114 pl -= es) in solv_sort()
115 swap(pl, pl - es); in solv_sort()
118 pm = (char *)a + (n / 2) * es; in solv_sort()
121 pn = (char *)a + (n - 1) * es; in solv_sort()
123 d = (n / 8) * es; in solv_sort()
131 pa = pb = (char *)a + es; in solv_sort()
133 pc = pd = (char *)a + (n - 1) * es; in solv_sort()
139 pa += es; in solv_sort()
141 pb += es; in solv_sort()
147 pd -= es; in solv_sort()
149 pc -= es; in solv_sort()
155 pb += es; in solv_sort()
156 pc -= es; in solv_sort()
159 for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es) in solv_sort()
161 pl > (char *)a && CMP(thunk, pl - es, pl) > 0; in solv_sort()
162 pl -= es) in solv_sort()
163 swap(pl, pl - es); in solv_sort()
167 pn = (char *)a + n * es; in solv_sort()
170 r = min(pd - pc, pn - pd - es); in solv_sort()
172 if ((r = pb - pa) > es) in solv_sort()
173 solv_sort(a, r / es, es, cmp, thunk); in solv_sort()
174 if ((r = pd - pc) > es) { in solv_sort()
177 n = r / es; in solv_sort()