diff options
| author | Tyge Løvset <[email protected]> | 2022-12-31 00:20:26 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-12-31 00:20:26 +0100 |
| commit | 9d48d93be9be4e5702979c82c9445cd8d4e90d04 (patch) | |
| tree | c7ec7f8e540f6fa4363430c90d9aa0ecd6eb11a2 /include/stc/algo/csort.h | |
| parent | 9d59845f622fbb9c225bbe32246a3128ad9ec0b1 (diff) | |
| download | STC-modified-9d48d93be9be4e5702979c82c9445cd8d4e90d04.tar.gz STC-modified-9d48d93be9be4e5702979c82c9445cd8d4e90d04.zip | |
Moved fmt.h to include/c11 folder. Not used by the lib or examples as lib is c99 only.
Diffstat (limited to 'include/stc/algo/csort.h')
| -rw-r--r-- | include/stc/algo/csort.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/stc/algo/csort.h b/include/stc/algo/csort.h index 9b115398..9c6a1e80 100644 --- a/include/stc/algo/csort.h +++ b/include/stc/algo/csort.h @@ -27,7 +27,7 @@ #define c_PASTE(a, b) c_CONCAT(a, b) #endif -/* Generic Quicksort in C +/* Generic Quicksort in C, performs as fast as c++ std::sort(). template params: #define i_val - value type [required] #define i_less - less function. default: *x < *y @@ -38,8 +38,8 @@ template params: #include <time.h> #include <stdlib.h> #define i_val int -#include <stc/crandom.h> #include <stc/algo/csort.h> +#include <stc/crandom.h> #ifdef __cplusplus #include <algorithm> #endif @@ -47,10 +47,10 @@ template params: int testsort(csortval_int *a, size_t size, const char *desc) { clock_t t = clock(); #ifdef __cplusplus - puts("std::sort"); + printf("std::sort: "); std::sort(a, a + size); #else - puts("csort"); + printf("csort: "); csort_int(a, size); #endif t = clock() - t; |
