Messages in this thread | | | From | Alexey Dobriyan <> | Subject | Re: [PATCH 1/8] lib/sort: Heapsort implementation of sort() | Date | Mon, 31 Jan 2005 13:52:57 +0200 |
| |
On Mon, 31 Jan 2005 01:34:59 -0600, Matt Mackall wrote:
> This patch adds a generic array sorting library routine. This is meant > to replace qsort, which has two problem areas for kernel use.
> --- /dev/null > +++ mm2/include/linux/sort.h > @@ -0,0 +1,8 @@
> +void sort(void *base, size_t num, size_t size, > + int (*cmp)(const void *, const void *), > + void (*swap)(void *, void *, int));
extern void sort(...) ?
Alexey
P. S.: Andrew's email ends with ".org". - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |