diff options
| author | Tyge Løvset <[email protected]> | 2022-09-23 13:17:22 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-09-23 13:17:22 +0200 |
| commit | 2c83996f1ad7ac7176833d1ecb76f59120bf52cd (patch) | |
| tree | 495527c129d630b67aed0d8528c70ef5aa418106 /benchmarks/plotbench/cmap_benchmark.cpp | |
| parent | 0ec40a5819a619b6b2777f24c555a8953e99ea9b (diff) | |
| download | STC-modified-2c83996f1ad7ac7176833d1ecb76f59120bf52cd.tar.gz STC-modified-2c83996f1ad7ac7176833d1ecb76f59120bf52cd.zip | |
Reverted c_forrange() macro with 3 or more args: swapped 1st and 2nd arg again.
Diffstat (limited to 'benchmarks/plotbench/cmap_benchmark.cpp')
| -rw-r--r-- | benchmarks/plotbench/cmap_benchmark.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/plotbench/cmap_benchmark.cpp b/benchmarks/plotbench/cmap_benchmark.cpp index b73f6bd1..cf20c927 100644 --- a/benchmarks/plotbench/cmap_benchmark.cpp +++ b/benchmarks/plotbench/cmap_benchmark.cpp @@ -113,10 +113,10 @@ Sample test_stc_unordered_map() { int main(int argc, char* argv[]) { Sample std_s[SAMPLES + 1], stc_s[SAMPLES + 1]; - c_forrange (int, i, SAMPLES) { + c_forrange (i, int, SAMPLES) { std_s[i] = test_std_unordered_map(); stc_s[i] = test_stc_unordered_map(); - if (i > 0) c_forrange (int, j, N_TESTS) { + if (i > 0) c_forrange (j, int, N_TESTS) { if (secs(std_s[i].test[j]) < secs(std_s[0].test[j])) std_s[0].test[j] = std_s[i].test[j]; if (secs(stc_s[i].test[j]) < secs(stc_s[0].test[j])) stc_s[0].test[j] = stc_s[i].test[j]; if (stc_s[i].test[j].sum != stc_s[0].test[j].sum) printf("Error in sum: test %d, sample %d\n", i, j); |
