Re: [PATCH 1/8] lib/sort: Heapsort implementation of sort()

From: Alexey Dobriyan
Date: Mon Jan 31 2005 - 05:54:59 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/