summaryrefslogtreecommitdiff
path: root/sorters.h
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2014-06-20 22:55:59 -0500
committerBobby Bingham <koorogi@koorogi.info>2014-06-20 22:55:59 -0500
commit5fa0d5023f0e2935f99b04422f3a338d77264107 (patch)
treed3ce357870a0a816cbda5add42ea14f0fce94053 /sorters.h
Initial commit: benchmark musl's qsort
Diffstat (limited to 'sorters.h')
-rw-r--r--sorters.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sorters.h b/sorters.h
new file mode 100644
index 0000000..1a2397a
--- /dev/null
+++ b/sorters.h
@@ -0,0 +1,11 @@
+#include <stddef.h>
+
+typedef int (*cmpfun)(const void *, const void *);
+typedef void (*sorter)(void *, size_t, size_t, cmpfun);
+
+void qsort_musl(void *, size_t, size_t, cmpfun);
+
+extern const struct sorter {
+ const char *name;
+ sorter func;
+} sorters[];