projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc2f368
)
qsort: add a short comment about the algorithm
author
Leah Neukirchen
<leah@vuxu.org>
Thu, 10 Aug 2017 13:35:13 +0000
(15:35 +0200)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 12 Aug 2017 00:23:21 +0000
(20:23 -0400)
src/stdlib/qsort.c
patch
|
blob
|
history
diff --git
a/src/stdlib/qsort.c
b/src/stdlib/qsort.c
index 434d9350726df8413295db92846d37ac7f63a2f4..da58fd3177814634d7e1b9b06ea2135ee633295f 100644
(file)
--- a/
src/stdlib/qsort.c
+++ b/
src/stdlib/qsort.c
@@
-21,6
+21,9
@@
/* Minor changes by Rich Felker for integration in musl, 2011-04-27. */
+/* Smoothsort, an adaptive variant of Heapsort. Memory usage: O(1).
+ Run time: Worst case O(n log n), close to O(n) in the mostly-sorted case. */
+
#include <stdint.h>
#include <stdlib.h>
#include <string.h>