sort

2 views
Skip to first unread message

Davide Libenzi

unread,
Oct 15, 2015, 4:44:26 PM10/15/15
to aka...@googlegroups.com
Do we have a sort utility in Akaros?
If not, would heapsort (predictable worst case, in place) be OK to be added?

Barret Rhoden

unread,
Oct 15, 2015, 5:10:11 PM10/15/15
to aka...@googlegroups.com
On 2015-10-15 at 13:44 "'Davide Libenzi' via Akaros"
We don't have a sort, and that sounds useful. As far as location,
could you drop it in kern/lib/? I'd like to start moving some of the
more 'library-like' functions over there.

Thanks,

Barret

Davide Libenzi

unread,
Oct 15, 2015, 5:30:48 PM10/15/15
to aka...@googlegroups.com
OK.
I added sort.c and sort.h in the lib directory.
How to we want to access sort.h? <sort.h> or <lib/sort.h>?



--
You received this message because you are subscribed to the Google Groups "Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akaros+un...@googlegroups.com.
To post to this group, send email to aka...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kevin Klues

unread,
Oct 15, 2015, 5:37:32 PM10/15/15
to aka...@googlegroups.com
It looks like for the zlib stuff we put zlib.h directly in
kern/include and only had the *.c files and any non exported *.h files
in kern/lib/zlib*. Maybe do the same with sort?

On Thu, Oct 15, 2015 at 2:30 PM, 'Davide Libenzi' via Akaros
--
~Kevin

Davide Libenzi

unread,
Oct 15, 2015, 5:41:32 PM10/15/15
to aka...@googlegroups.com
OK for me.

Barret Rhoden

unread,
Oct 15, 2015, 5:42:26 PM10/15/15
to aka...@googlegroups.com
On 2015-10-15 at 14:36 Kevin Klues <klu...@gmail.com> wrote:
> It looks like for the zlib stuff we put zlib.h directly in
> kern/include and only had the *.c files and any non exported *.h files
> in kern/lib/zlib*. Maybe do the same with sort?

Yeah, please follow the zlib example. I based that off the Linux
model, roughly.

Barret

Reply all
Reply to author
Forward
0 new messages