diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2014-06-20 22:55:59 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2014-06-20 22:55:59 -0500 |
commit | 5fa0d5023f0e2935f99b04422f3a338d77264107 (patch) | |
tree | d3ce357870a0a816cbda5add42ea14f0fce94053 /sorters.h |
Initial commit: benchmark musl's qsort
Diffstat (limited to 'sorters.h')
-rw-r--r-- | sorters.h | 11 |
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[]; |