diff options
| author | Tyge Løvset <[email protected]> | 2023-03-12 14:56:14 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-03-12 14:56:14 +0100 |
| commit | f68fee2ecc3f03261d983717795079dda01401d7 (patch) | |
| tree | 1361ab58e356d75e173906e3b2e0999be9a581ea /misc | |
| parent | c9be5f66a481bd040b36a25314f6589dd939daa5 (diff) | |
| download | STC-modified-f68fee2ecc3f03261d983717795079dda01401d7.tar.gz STC-modified-f68fee2ecc3f03261d983717795079dda01401d7.zip | |
Replaced clist mergesort with qsort: no need for i_extern defined to include it.
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/examples/list.c | 5 | ||||
| -rw-r--r-- | misc/examples/multimap.c | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/misc/examples/list.c b/misc/examples/list.c index c12d67e9..027c5adc 100644 --- a/misc/examples/list.c +++ b/misc/examples/list.c @@ -5,15 +5,14 @@ #define i_val double #define i_tag fx -#define i_extern // include sort function #include <stc/clist.h> int main() { - const int n = 1000000; + const int n = 3000000; c_auto (clist_fx, list) { - stc64_t rng = stc64_new(1234); + stc64_t rng = stc64_new(1234567); stc64_uniformf_t dist = stc64_uniformf_new(100.0f, n); int m = 0; c_forrange (n) diff --git a/misc/examples/multimap.c b/misc/examples/multimap.c index 1d5d259d..1b72fb67 100644 --- a/misc/examples/multimap.c +++ b/misc/examples/multimap.c @@ -41,7 +41,6 @@ void OlympicLoc_drop(OlympicLoc* self); // Create a clist<OlympicLoc>, can be sorted by year. #define i_valclass OlympicLoc // binds _cmp, _clone and _drop. #define i_tag OL -#define i_extern // define _clist_mergesort() #include <stc/clist.h> // Create a csmap<cstr, clist_OL> where key is country name |
