Lines Matching refs:swap_func
135 static void do_swap(void *a, void *b, size_t size, swap_func_t swap_func) in do_swap() argument
137 if (swap_func == SWAP_WORDS_64) in do_swap()
139 else if (swap_func == SWAP_WORDS_32) in do_swap()
141 else if (swap_func == SWAP_BYTES) in do_swap()
144 swap_func(a, b, (int)size); in do_swap()
206 void (*swap_func)(void *, void *, int size), in sort_r()
216 if (!swap_func) { in sort_r()
218 swap_func = SWAP_WORDS_64; in sort_r()
220 swap_func = SWAP_WORDS_32; in sort_r()
222 swap_func = SWAP_BYTES; in sort_r()
238 do_swap(base, base + n, size, swap_func); in sort_r()
265 do_swap(base + b, base + c, size, swap_func); in sort_r()
273 void (*swap_func)(void *, void *, int size)) in sort()
275 return sort_r(base, num, size, _CMP_WRAPPER, swap_func, cmp_func); in sort()