summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/plotbench/clist_benchmark.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-09-23 13:17:22 +0200
committerTyge Løvset <[email protected]>2022-09-23 13:17:22 +0200
commit2c83996f1ad7ac7176833d1ecb76f59120bf52cd (patch)
tree495527c129d630b67aed0d8528c70ef5aa418106 /benchmarks/plotbench/clist_benchmark.cpp
parent0ec40a5819a619b6b2777f24c555a8953e99ea9b (diff)
downloadSTC-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/clist_benchmark.cpp')
-rw-r--r--benchmarks/plotbench/clist_benchmark.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/plotbench/clist_benchmark.cpp b/benchmarks/plotbench/clist_benchmark.cpp
index fad44ed5..ddd1e2f0 100644
--- a/benchmarks/plotbench/clist_benchmark.cpp
+++ b/benchmarks/plotbench/clist_benchmark.cpp
@@ -106,10 +106,10 @@ Sample test_stc_forward_list() {
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_forward_list();
stc_s[i] = test_stc_forward_list();
- 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);