aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/cycles.h
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-07-24 17:01:41 +0200
committerCyril SIX <cyril.six@kalray.eu>2019-07-24 17:02:29 +0200
commit4ee5d47c502e05deed69eb8ddf183384a86ffd05 (patch)
tree3c118f606d4973c91e5d703f7c553956a2501f6e /test/monniaux/cycles.h
parenta11f3b87e0535b6c7953c74d00d91fb7d7fbb21b (diff)
downloadcompcert-kvx-4ee5d47c502e05deed69eb8ddf183384a86ffd05.tar.gz
compcert-kvx-4ee5d47c502e05deed69eb8ddf183384a86ffd05.zip
Minor fix for the measurements macros
Diffstat (limited to 'test/monniaux/cycles.h')
-rw-r--r--test/monniaux/cycles.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/monniaux/cycles.h b/test/monniaux/cycles.h
index 8012a013..21541145 100644
--- a/test/monniaux/cycles.h
+++ b/test/monniaux/cycles.h
@@ -46,5 +46,5 @@ static inline cycle_t get_cycle(void) { return 0; }
#ifdef MAX_MEASURES
#define TIMEINIT(i) {_last_stop[i] = get_cycle();}
#define TIMESTOP(i) {cycle_t cur = get_cycle(); _total_cycles[i] += cur - _last_stop[i]; _last_stop[i] = cur;}
- #define TIMEPRINT(n) { for (int i = 0; i <= n; i++) printf("(%d) cycles: %" PRIu64 "\n", i, _total_cycles[i]); }
+ #define TIMEPRINT(n) { for (int i = 0; i <= n; i++) printf("%d cycles: %" PRIu64 "\n", i, _total_cycles[i]); }
#endif