diff options
author | Richard Henderson <rth@twiddle.net> | 2014-06-25 12:15:19 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2014-07-03 08:38:21 -0700 |
commit | c39323e9d2fb6697d5d8739ad9b7959c88a6d5a1 (patch) | |
tree | fa3141a230fb12f9a5a3d25d9a47063bf79c4228 /sysdeps/ia64/hp-timing.h | |
parent | 850e0e032b77ee833a9f98d1bef3f50769bdd0c7 (diff) | |
download | glibc-c39323e9d2fb6697d5d8739ad9b7959c88a6d5a1.tar.gz glibc-c39323e9d2fb6697d5d8739ad9b7959c88a6d5a1.tar.xz glibc-c39323e9d2fb6697d5d8739ad9b7959c88a6d5a1.zip |
Removing HP_TIMING_ACCUM as unused
Diffstat (limited to 'sysdeps/ia64/hp-timing.h')
-rw-r--r-- | sysdeps/ia64/hp-timing.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/sysdeps/ia64/hp-timing.h b/sysdeps/ia64/hp-timing.h index e91326c8d0..ccc49e63ce 100644 --- a/sysdeps/ia64/hp-timing.h +++ b/sysdeps/ia64/hp-timing.h @@ -52,13 +52,8 @@ - HP_TIMING_DIFF: compute difference between two times and store it in a third. Source and destination might overlap. - - HP_TIMING_ACCUM: add time difference to another variable. This might - be a bit more complicated to implement for some platforms as the - operation should be thread-safe and 64bit arithmetic on 32bit platforms - is not. - - - HP_TIMING_ACCUM_NT: this is the variant for situations where we know - there are no threads involved. + - HP_TIMING_ACCUM_NT: add time difference to another variable, without + being thread-safe. - HP_TIMING_PRINT: write decimal representation of the timing value into the given string. This operation need not be inline even though @@ -108,21 +103,6 @@ typedef unsigned long int hp_timing_t; /* It's simple arithmetic for us. */ #define HP_TIMING_DIFF(Diff, Start, End) (Diff) = ((End) - (Start)) -/* We have to jump through hoops to get this correctly implemented. */ -#define HP_TIMING_ACCUM(Sum, Diff) \ - do { \ - hp_timing_t __oldval; \ - hp_timing_t __diff = (Diff) - GLRO(dl_hp_timing_overhead); \ - hp_timing_t __newval; \ - do \ - { \ - __oldval = (Sum); \ - __newval = __oldval + __diff; \ - } \ - while (! __sync_bool_compare_and_swap (&Sum, __oldvar, __newval)); \ - } while (0) - -/* No threads, no extra work. */ #define HP_TIMING_ACCUM_NT(Sum, Diff) (Sum) += (Diff) /* Print the time value. */ |