summaryrefslogtreecommitdiff
path: root/benchtests
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2014-06-25 12:27:16 -0700
committerRichard Henderson <rth@twiddle.net>2014-07-03 08:38:25 -0700
commit428dd03f5a7291d19f0c45fc314da9356ee22d63 (patch)
tree35017b916f4ebeebf563364be5c07cdee6902a4e /benchtests
parentc39323e9d2fb6697d5d8739ad9b7959c88a6d5a1 (diff)
downloadglibc-428dd03f5a7291d19f0c45fc314da9356ee22d63.tar.gz
Remove HP_TIMING_DIFF_INIT and dl_hp_timing_overhead
Without HP_TIMING_ACCUM, dl_hp_timing_overhead is write-only. If we remove it, there's no point in HP_TIMING_DIFF_INIT either.
Diffstat (limited to 'benchtests')
-rw-r--r--benchtests/bench-string.h2
-rw-r--r--benchtests/bench-timing.h7
2 files changed, 1 insertions, 8 deletions
diff --git a/benchtests/bench-string.h b/benchtests/bench-string.h
index 26096806f3..bdb927f533 100644
--- a/benchtests/bench-string.h
+++ b/benchtests/bench-string.h
@@ -69,8 +69,6 @@ int ret, do_srandom;
unsigned int seed;
size_t page_size;
-hp_timing_t _dl_hp_timing_overhead;
-
# ifndef ITERATIONS
size_t iterations = 100000;
# define ITERATIONS_OPTIONS \
diff --git a/benchtests/bench-timing.h b/benchtests/bench-timing.h
index ccde6011c8..87da32f51a 100644
--- a/benchtests/bench-timing.h
+++ b/benchtests/bench-timing.h
@@ -22,16 +22,11 @@
#if HP_TIMING_AVAIL && !defined USE_CLOCK_GETTIME
# define GL(x) _##x
# define GLRO(x) _##x
-hp_timing_t _dl_hp_timing_overhead;
typedef hp_timing_t timing_t;
# define TIMING_TYPE "hp_timing"
-# define TIMING_INIT(res) \
-({ \
- HP_TIMING_DIFF_INIT(); \
- (res) = 1; \
-})
+# define TIMING_INIT(res) ({ (res) = 1; })
# define TIMING_NOW(var) HP_TIMING_NOW (var)
# define TIMING_DIFF(diff, start, end) HP_TIMING_DIFF ((diff), (start), (end))