diff options
author | Richard Henderson <rth@twiddle.net> | 2014-06-25 12:27:16 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2014-07-03 08:38:25 -0700 |
commit | 428dd03f5a7291d19f0c45fc314da9356ee22d63 (patch) | |
tree | 35017b916f4ebeebf563364be5c07cdee6902a4e /sysdeps | |
parent | c39323e9d2fb6697d5d8739ad9b7959c88a6d5a1 (diff) | |
download | glibc-428dd03f5a7291d19f0c45fc314da9356ee22d63.tar.gz glibc-428dd03f5a7291d19f0c45fc314da9356ee22d63.tar.xz glibc-428dd03f5a7291d19f0c45fc314da9356ee22d63.zip |
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 'sysdeps')
-rw-r--r-- | sysdeps/alpha/hp-timing.h | 6 | ||||
-rw-r--r-- | sysdeps/generic/hp-timing.h | 4 | ||||
-rw-r--r-- | sysdeps/generic/ldsodefs.h | 5 | ||||
-rw-r--r-- | sysdeps/i386/i686/Makefile | 5 | ||||
-rw-r--r-- | sysdeps/i386/i686/hp-timing.c | 23 | ||||
-rw-r--r-- | sysdeps/i386/i686/hp-timing.h | 22 | ||||
-rw-r--r-- | sysdeps/ia64/Makefile | 2 | ||||
-rw-r--r-- | sysdeps/ia64/hp-timing.c | 23 | ||||
-rw-r--r-- | sysdeps/ia64/hp-timing.h | 19 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc32/power4/hp-timing.c | 24 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc32/power4/hp-timing.h | 24 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/Makefile | 5 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/hp-timing.c | 24 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/hp-timing.h | 23 | ||||
-rw-r--r-- | sysdeps/sparc/sparc32/sparcv9/Makefile | 5 | ||||
-rw-r--r-- | sysdeps/sparc/sparc32/sparcv9/hp-timing.c | 23 | ||||
-rw-r--r-- | sysdeps/sparc/sparc32/sparcv9/hp-timing.h | 15 | ||||
-rw-r--r-- | sysdeps/sparc/sparc64/Makefile | 5 | ||||
-rw-r--r-- | sysdeps/sparc/sparc64/hp-timing.c | 23 | ||||
-rw-r--r-- | sysdeps/sparc/sparc64/hp-timing.h | 15 | ||||
-rw-r--r-- | sysdeps/x86_64/Makefile | 2 | ||||
-rw-r--r-- | sysdeps/x86_64/hp-timing.c | 2 |
22 files changed, 0 insertions, 299 deletions
diff --git a/sysdeps/alpha/hp-timing.h b/sysdeps/alpha/hp-timing.h index 71322f9773..9745e5360d 100644 --- a/sysdeps/alpha/hp-timing.h +++ b/sysdeps/alpha/hp-timing.h @@ -45,9 +45,6 @@ - HP_TIMING_NOW: place timestamp for current time in variable given as parameter. - - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the - HP_TIMING_DIFF macro. - - HP_TIMING_DIFF: compute difference between two times and store it in a third. Source and destination might overlap. @@ -80,9 +77,6 @@ typedef unsigned int hp_timing_t; (VAR) = (int) (x_) - (int) (x_ >> 32); \ } while (0) -/* ??? Two rpcc instructions can be scheduled simultaneously. */ -#define HP_TIMING_DIFF_INIT() do { } while (0) - /* It's simple arithmetic for us. */ #define HP_TIMING_DIFF(Diff, Start, End) (Diff) = ((End) - (Start)) diff --git a/sysdeps/generic/hp-timing.h b/sysdeps/generic/hp-timing.h index 894ab17236..49ddb91046 100644 --- a/sysdeps/generic/hp-timing.h +++ b/sysdeps/generic/hp-timing.h @@ -42,9 +42,6 @@ - HP_TIMING_NOW: place timestamp for current time in variable given as parameter. - - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the - HP_TIMING_DIFF macro. - - HP_TIMING_DIFF: compute difference between two times and store it in a third. Source and destination might overlap. @@ -62,7 +59,6 @@ #define HP_TIMING_INLINE (0) typedef int hp_timing_t; #define HP_TIMING_NOW(var) -#define HP_TIMING_DIFF_INIT() #define HP_TIMING_DIFF(Diff, Start, End) #define HP_TIMING_ACCUM_NT(Sum, Diff) #define HP_TIMING_PRINT(Buf, Len, Val) diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index 96f018da3c..2acddaa563 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -532,11 +532,6 @@ struct rtld_global_ro /* All search directories defined at startup. */ EXTERN struct r_search_path_elem *_dl_init_all_dirs; -#if HP_TIMING_AVAIL || HP_SMALL_TIMING_AVAIL - /* Overhead of a high-precision timing measurement. */ - EXTERN hp_timing_t _dl_hp_timing_overhead; -#endif - #ifdef NEED_DL_SYSINFO /* Syscall handling improvements. This is very specific to x86. */ EXTERN uintptr_t _dl_sysinfo; diff --git a/sysdeps/i386/i686/Makefile b/sysdeps/i386/i686/Makefile index 01c2917892..5ce9fc670a 100644 --- a/sysdeps/i386/i686/Makefile +++ b/sysdeps/i386/i686/Makefile @@ -1,8 +1,3 @@ -ifeq ($(subdir),csu) -sysdep_routines += hp-timing -elide-routines.os += hp-timing -endif - # So that we can test __m128's alignment stack-align-test-flags += -msse diff --git a/sysdeps/i386/i686/hp-timing.c b/sysdeps/i386/i686/hp-timing.c deleted file mode 100644 index faa6dadd0a..0000000000 --- a/sysdeps/i386/i686/hp-timing.c +++ /dev/null @@ -1,23 +0,0 @@ -/* Support for high precision, low overhead timing functions. i686 version. - Copyright (C) 1998-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - <http://www.gnu.org/licenses/>. */ - -#include <hp-timing.h> - -/* We have to define the variable for the overhead. */ -hp_timing_t _dl_hp_timing_overhead; diff --git a/sysdeps/i386/i686/hp-timing.h b/sysdeps/i386/i686/hp-timing.h index a4b19c1043..12c613e9de 100644 --- a/sysdeps/i386/i686/hp-timing.h +++ b/sysdeps/i386/i686/hp-timing.h @@ -52,9 +52,6 @@ - HP_TIMING_NOW: place timestamp for current time in variable given as parameter. - - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the - HP_TIMING_DIFF macro. - - HP_TIMING_DIFF: compute difference between two times and store it in a third. Source and destination might overlap. @@ -83,25 +80,6 @@ typedef unsigned long long int hp_timing_t; in accurate clock cycles here so we don't do this. */ #define HP_TIMING_NOW(Var) __asm__ __volatile__ ("rdtsc" : "=A" (Var)) -/* Use two 'rdtsc' instructions in a row to find out how long it takes. */ -#define HP_TIMING_DIFF_INIT() \ - do { \ - if (GLRO(dl_hp_timing_overhead) == 0) \ - { \ - int __cnt = 5; \ - GLRO(dl_hp_timing_overhead) = ~0ull; \ - do \ - { \ - hp_timing_t __t1, __t2; \ - HP_TIMING_NOW (__t1); \ - HP_TIMING_NOW (__t2); \ - if (__t2 - __t1 < GLRO(dl_hp_timing_overhead)) \ - GLRO(dl_hp_timing_overhead) = __t2 - __t1; \ - } \ - while (--__cnt > 0); \ - } \ - } while (0) - /* It's simple arithmetic for us. */ #define HP_TIMING_DIFF(Diff, Start, End) (Diff) = ((End) - (Start)) diff --git a/sysdeps/ia64/Makefile b/sysdeps/ia64/Makefile index 2ea937ac9e..09e41f2417 100644 --- a/sysdeps/ia64/Makefile +++ b/sysdeps/ia64/Makefile @@ -7,8 +7,6 @@ endif ifeq ($(subdir), csu) CPPFLAGS-start.S = -D__ASSEMBLY__ -sysdep_routines += hp-timing -elide-routines.os += hp-timing ifeq (yes,$(build-shared)) # Compatibility diff --git a/sysdeps/ia64/hp-timing.c b/sysdeps/ia64/hp-timing.c deleted file mode 100644 index 7a661cbc9f..0000000000 --- a/sysdeps/ia64/hp-timing.c +++ /dev/null @@ -1,23 +0,0 @@ -/* Support for high precision, low overhead timing functions. IA-64 version. - Copyright (C) 2001-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Ulrich Drepper <drepper@cygnus.com>, 2001. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - <http://www.gnu.org/licenses/>. */ - -#include <hp-timing.h> - -/* We have to define the variable for the overhead. */ -hp_timing_t _dl_hp_timing_overhead; diff --git a/sysdeps/ia64/hp-timing.h b/sysdeps/ia64/hp-timing.h index ccc49e63ce..6b49ffc2eb 100644 --- a/sysdeps/ia64/hp-timing.h +++ b/sysdeps/ia64/hp-timing.h @@ -46,9 +46,6 @@ - HP_TIMING_NOW: place timestamp for current time in variable given as parameter. - - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the - HP_TIMING_DIFF macro. - - HP_TIMING_DIFF: compute difference between two times and store it in a third. Source and destination might overlap. @@ -84,22 +81,6 @@ typedef unsigned long int hp_timing_t; while (REPEAT_READ (__itc)); \ Var = __itc; }) -/* Use two 'ar.itc' instructions in a row to find out how long it takes. */ -#define HP_TIMING_DIFF_INIT() \ - do { \ - int __cnt = 5; \ - GLRO(dl_hp_timing_overhead) = ~0ul; \ - do \ - { \ - hp_timing_t __t1, __t2; \ - HP_TIMING_NOW (__t1); \ - HP_TIMING_NOW (__t2); \ - if (__t2 - __t1 < GLRO(dl_hp_timing_overhead)) \ - GLRO(dl_hp_timing_overhead) = __t2 - __t1; \ - } \ - while (--__cnt > 0); \ - } while (0) - /* It's simple arithmetic for us. */ #define HP_TIMING_DIFF(Diff, Start, End) (Diff) = ((End) - (Start)) diff --git a/sysdeps/powerpc/powerpc32/power4/hp-timing.c b/sysdeps/powerpc/powerpc32/power4/hp-timing.c deleted file mode 100644 index fcf5e45a2c..0000000000 --- a/sysdeps/powerpc/powerpc32/power4/hp-timing.c +++ /dev/null @@ -1,24 +0,0 @@ -/* Support for high precision, low overhead timing functions. - powerpc64 version. - Copyright (C) 2005-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - <http://www.gnu.org/licenses/>. */ - -#include <hp-timing.h> - -/* We have to define the variable for the overhead. */ -hp_timing_t _dl_hp_timing_overhead; diff --git a/sysdeps/powerpc/powerpc32/power4/hp-timing.h b/sysdeps/powerpc/powerpc32/power4/hp-timing.h index cd296c52e2..702efac396 100644 --- a/sysdeps/powerpc/powerpc32/power4/hp-timing.h +++ b/sysdeps/powerpc/powerpc32/power4/hp-timing.h @@ -45,9 +45,6 @@ - HP_TIMING_NOW: place timestamp for current time in variable given as parameter. - - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the - HP_TIMING_DIFF macro. - - HP_TIMING_DIFF: compute difference between two times and store it in a third. Source and destination might overlap. @@ -88,27 +85,6 @@ typedef unsigned long long int hp_timing_t; Var = ((hp_timing_t) hi << 32) | lo; \ } while (0) - -/* Use two 'mftb' instructions in a row to find out how long it takes. - On current POWER4, POWER5, and 970 processors mftb take ~10 cycles. */ -#define HP_TIMING_DIFF_INIT() \ - do { \ - if (GLRO(dl_hp_timing_overhead) == 0) \ - { \ - int __cnt = 5; \ - GLRO(dl_hp_timing_overhead) = ~0ull; \ - do \ - { \ - hp_timing_t __t1, __t2; \ - HP_TIMING_NOW (__t1); \ - HP_TIMING_NOW (__t2); \ - if (__t2 - __t1 < GLRO(dl_hp_timing_overhead)) \ - GLRO(dl_hp_timing_overhead) = __t2 - __t1; \ - } \ - while (--__cnt > 0); \ - } \ - } while (0) - /* It's simple arithmetic in 64-bit. */ #define HP_TIMING_DIFF(Diff, Start, End) (Diff) = ((End) - (Start)) diff --git a/sysdeps/powerpc/powerpc64/Makefile b/sysdeps/powerpc/powerpc64/Makefile index 171e89b3ba..9d15db0328 100644 --- a/sysdeps/powerpc/powerpc64/Makefile +++ b/sysdeps/powerpc/powerpc64/Makefile @@ -35,11 +35,6 @@ CFLAGS-rtld-memmove.os = $(no-special-regs) CFLAGS-rtld-memchr.os = $(no-special-regs) CFLAGS-rtld-strnlen.os = $(no-special-regs) -ifeq ($(subdir),csu) -sysdep_routines += hp-timing -elide-routines.os += hp-timing -endif - ifeq ($(subdir),elf) # help gcc inline asm code from dl-machine.h +cflags += -finline-limit=2000 diff --git a/sysdeps/powerpc/powerpc64/hp-timing.c b/sysdeps/powerpc/powerpc64/hp-timing.c deleted file mode 100644 index fcf5e45a2c..0000000000 --- a/sysdeps/powerpc/powerpc64/hp-timing.c +++ /dev/null @@ -1,24 +0,0 @@ -/* Support for high precision, low overhead timing functions. - powerpc64 version. - Copyright (C) 2005-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - <http://www.gnu.org/licenses/>. */ - -#include <hp-timing.h> - -/* We have to define the variable for the overhead. */ -hp_timing_t _dl_hp_timing_overhead; diff --git a/sysdeps/powerpc/powerpc64/hp-timing.h b/sysdeps/powerpc/powerpc64/hp-timing.h index 4cad90afa1..7241b9b9d7 100644 --- a/sysdeps/powerpc/powerpc64/hp-timing.h +++ b/sysdeps/powerpc/powerpc64/hp-timing.h @@ -45,9 +45,6 @@ - HP_TIMING_NOW: place timestamp for current time in variable given as parameter. - - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the - HP_TIMING_DIFF macro. - - HP_TIMING_DIFF: compute difference between two times and store it in a third. Source and destination might overlap. @@ -80,26 +77,6 @@ typedef unsigned long long int hp_timing_t; #define HP_TIMING_NOW(Var) __asm__ __volatile__ ("mftb %0" : "=r" (Var)) #endif -/* Use two 'mftb' instructions in a row to find out how long it takes. - On current POWER4, POWER5, and 970 processors mftb take ~10 cycles. */ -#define HP_TIMING_DIFF_INIT() \ - do { \ - if (GLRO(dl_hp_timing_overhead) == 0) \ - { \ - int __cnt = 5; \ - GLRO(dl_hp_timing_overhead) = ~0ull; \ - do \ - { \ - hp_timing_t __t1, __t2; \ - HP_TIMING_NOW (__t1); \ - HP_TIMING_NOW (__t2); \ - if (__t2 - __t1 < GLRO(dl_hp_timing_overhead)) \ - GLRO(dl_hp_timing_overhead) = __t2 - __t1; \ - } \ - while (--__cnt > 0); \ - } \ - } while (0) - /* It's simple arithmetic in 64-bit. */ #define HP_TIMING_DIFF(Diff, Start, End) (Diff) = ((End) - (Start)) diff --git a/sysdeps/sparc/sparc32/sparcv9/Makefile b/sysdeps/sparc/sparc32/sparcv9/Makefile index 36f889ec96..925fa4ff73 100644 --- a/sysdeps/sparc/sparc32/sparcv9/Makefile +++ b/sysdeps/sparc/sparc32/sparcv9/Makefile @@ -1,10 +1,5 @@ sysdep-CFLAGS += -mcpu=ultrasparc -Wa,-Av9a -ifeq ($(subdir),csu) -sysdep_routines += hp-timing -elide-routines.os += hp-timing -endif - ifeq ($(have-as-vis3),yes) ASFLAGS-.o += -Wa,-Av9d ASFLAGS-.os += -Wa,-Av9d diff --git a/sysdeps/sparc/sparc32/sparcv9/hp-timing.c b/sysdeps/sparc/sparc32/sparcv9/hp-timing.c deleted file mode 100644 index 2224099940..0000000000 --- a/sysdeps/sparc/sparc32/sparcv9/hp-timing.c +++ /dev/null @@ -1,23 +0,0 @@ -/* Support for high precision, low overhead timing functions. sparcv9 version. - Copyright (C) 2001-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by David S. Miller <davem@redhat.com>, 2001. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - <http://www.gnu.org/licenses/>. */ - -#include <hp-timing.h> - -/* We have to define the variable for the overhead. */ -hp_timing_t _dl_hp_timing_overhead; diff --git a/sysdeps/sparc/sparc32/sparcv9/hp-timing.h b/sysdeps/sparc/sparc32/sparcv9/hp-timing.h index c3be1ca944..3f63ce68d3 100644 --- a/sysdeps/sparc/sparc32/sparcv9/hp-timing.h +++ b/sysdeps/sparc/sparc32/sparcv9/hp-timing.h @@ -34,21 +34,6 @@ typedef unsigned long long int hp_timing_t; "srlx %L0, 32, %H0" \ : "=r" (Var)) -#define HP_TIMING_DIFF_INIT() \ - do { \ - int __cnt = 5; \ - GLRO(dl_hp_timing_overhead) = ~0ull; \ - do \ - { \ - hp_timing_t __t1, __t2; \ - HP_TIMING_NOW (__t1); \ - HP_TIMING_NOW (__t2); \ - if (__t2 - __t1 < GLRO(dl_hp_timing_overhead)) \ - GLRO(dl_hp_timing_overhead) = __t2 - __t1; \ - } \ - while (--__cnt > 0); \ - } while (0) - #define HP_TIMING_DIFF(Diff, Start, End) (Diff) = ((End) - (Start)) #define HP_TIMING_ACCUM_NT(Sum, Diff) (Sum) += (Diff) diff --git a/sysdeps/sparc/sparc64/Makefile b/sysdeps/sparc/sparc64/Makefile index dd3023dcec..dfc118cfef 100644 --- a/sysdeps/sparc/sparc64/Makefile +++ b/sysdeps/sparc/sparc64/Makefile @@ -1,8 +1,3 @@ -ifeq ($(subdir),csu) -sysdep_routines += hp-timing -elide-routines.os += hp-timing -endif - ifeq ($(subdir),string) sysdep_routines += align-cpy endif diff --git a/sysdeps/sparc/sparc64/hp-timing.c b/sysdeps/sparc/sparc64/hp-timing.c deleted file mode 100644 index 0a425eddb4..0000000000 --- a/sysdeps/sparc/sparc64/hp-timing.c +++ /dev/null @@ -1,23 +0,0 @@ -/* Support for high precision, low overhead timing functions. sparc64 version. - Copyright (C) 2001-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by David S. Miller <davem@redhat.com>, 2001. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - <http://www.gnu.org/licenses/>. */ - -#include <hp-timing.h> - -/* We have to define the variable for the overhead. */ -hp_timing_t _dl_hp_timing_overhead; diff --git a/sysdeps/sparc/sparc64/hp-timing.h b/sysdeps/sparc/sparc64/hp-timing.h index 9e49b7841b..521f64ec43 100644 --- a/sysdeps/sparc/sparc64/hp-timing.h +++ b/sysdeps/sparc/sparc64/hp-timing.h @@ -31,21 +31,6 @@ typedef unsigned long int hp_timing_t; #define HP_TIMING_NOW(Var) __asm__ __volatile__ ("rd %%tick, %0" : "=r" (Var)) -#define HP_TIMING_DIFF_INIT() \ - do { \ - int __cnt = 5; \ - GLRO(dl_hp_timing_overhead) = ~0ull; \ - do \ - { \ - hp_timing_t __t1, __t2; \ - HP_TIMING_NOW (__t1); \ - HP_TIMING_NOW (__t2); \ - if (__t2 - __t1 < GLRO(dl_hp_timing_overhead)) \ - GLRO(dl_hp_timing_overhead) = __t2 - __t1; \ - } \ - while (--__cnt > 0); \ - } while (0) - #define HP_TIMING_DIFF(Diff, Start, End) (Diff) = ((End) - (Start)) #define HP_TIMING_ACCUM_NT(Sum, Diff) (Sum) += (Diff) diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile index 58900a5c28..32b36d5ce2 100644 --- a/sysdeps/x86_64/Makefile +++ b/sysdeps/x86_64/Makefile @@ -2,8 +2,6 @@ long-double-fcts = yes ifeq ($(subdir),csu) -sysdep_routines += hp-timing -elide-routines.os += hp-timing gen-as-const-headers += link-defines.sym endif diff --git a/sysdeps/x86_64/hp-timing.c b/sysdeps/x86_64/hp-timing.c deleted file mode 100644 index 289ca4c3c4..0000000000 --- a/sysdeps/x86_64/hp-timing.c +++ /dev/null @@ -1,2 +0,0 @@ -/* We can use the i686 implementation without changes. */ -#include <sysdeps/i386/i686/hp-timing.c> |