diff options
| author | Tyge Løvset <[email protected]> | 2022-04-18 23:53:18 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-04-18 23:53:18 +0200 |
| commit | 58497293d88109624d4798c56e888bcbab7c4285 (patch) | |
| tree | 670f4f481672635f27363ea2d711a4cbb37618d6 /benchmarks | |
| parent | 1eddea1da0125ddad2f8804fadafd1494c1bb11a (diff) | |
| download | STC-modified-58497293d88109624d4798c56e888bcbab7c4285.tar.gz STC-modified-58497293d88109624d4798c56e888bcbab7c4285.zip | |
crandom.h: Renamed *_init(..) functions to *_new(..). Old names are kept but deprecated.
Diffstat (limited to 'benchmarks')
| -rw-r--r-- | benchmarks/plotbench/cpque_benchmark.cpp | 4 | ||||
| -rw-r--r-- | benchmarks/shootout_hashmaps.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks/plotbench/cpque_benchmark.cpp b/benchmarks/plotbench/cpque_benchmark.cpp index 84bbe468..4a9e830a 100644 --- a/benchmarks/plotbench/cpque_benchmark.cpp +++ b/benchmarks/plotbench/cpque_benchmark.cpp @@ -17,7 +17,7 @@ void std_test() int N = 10000000, M = 10;
std::priority_queue<float, std::vector<float>, std::greater<float>> pq;
- rng = stc64_init(seed);
+ rng = stc64_new(seed);
clock_t start = clock();
c_forrange (i, N)
pq.push((float) stc64_randf(&rng)*100000);
@@ -41,7 +41,7 @@ void stc_test() c_auto (cpque_f, pq)
{
- rng = stc64_init(seed);
+ rng = stc64_new(seed);
clock_t start = clock();
c_forrange (i, N)
cpque_f_push(&pq, (float) stc64_randf(&rng)*100000);
diff --git a/benchmarks/shootout_hashmaps.cpp b/benchmarks/shootout_hashmaps.cpp index cd336931..57bd3383 100644 --- a/benchmarks/shootout_hashmaps.cpp +++ b/benchmarks/shootout_hashmaps.cpp @@ -32,7 +32,7 @@ KHASH_MAP_INIT_INT64(ii, int64_t) stc64_t rng; size_t seed; -#define SEED(s) rng = stc64_init(seed) +#define SEED(s) rng = stc64_new(seed) #define RAND(N) (stc64_rand(&rng) & (((uint64_t)1 << N) - 1)) |
