mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Removing HP_TIMING_ZERO as unused
This commit is contained in:
@ -42,8 +42,6 @@
|
|||||||
- hp_timing_t: This is the type for variables used to store the time
|
- hp_timing_t: This is the type for variables used to store the time
|
||||||
values.
|
values.
|
||||||
|
|
||||||
- HP_TIMING_ZERO: clear `hp_timing_t' object.
|
|
||||||
|
|
||||||
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
||||||
parameter.
|
parameter.
|
||||||
|
|
||||||
@ -77,9 +75,6 @@
|
|||||||
/* We use 32 bit values for the times. */
|
/* We use 32 bit values for the times. */
|
||||||
typedef unsigned int hp_timing_t;
|
typedef unsigned int hp_timing_t;
|
||||||
|
|
||||||
/* Set timestamp value to zero. */
|
|
||||||
#define HP_TIMING_ZERO(VAR) (VAR) = (0)
|
|
||||||
|
|
||||||
/* The "rpcc" instruction returns a 32-bit counting half and a 32-bit
|
/* The "rpcc" instruction returns a 32-bit counting half and a 32-bit
|
||||||
"virtual cycle counter displacement". Subtracting the two gives us
|
"virtual cycle counter displacement". Subtracting the two gives us
|
||||||
a virtual cycle count. */
|
a virtual cycle count. */
|
||||||
|
@ -39,8 +39,6 @@
|
|||||||
- hp_timing_t: This is the type for variables used to store the time
|
- hp_timing_t: This is the type for variables used to store the time
|
||||||
values.
|
values.
|
||||||
|
|
||||||
- HP_TIMING_ZERO: clear `hp_timing_t' object.
|
|
||||||
|
|
||||||
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
||||||
parameter.
|
parameter.
|
||||||
|
|
||||||
@ -68,7 +66,6 @@
|
|||||||
#define HP_TIMING_AVAIL (0)
|
#define HP_TIMING_AVAIL (0)
|
||||||
#define HP_TIMING_INLINE (0)
|
#define HP_TIMING_INLINE (0)
|
||||||
typedef int hp_timing_t;
|
typedef int hp_timing_t;
|
||||||
#define HP_TIMING_ZERO(Var)
|
|
||||||
#define HP_TIMING_NOW(var)
|
#define HP_TIMING_NOW(var)
|
||||||
#define HP_TIMING_DIFF_INIT()
|
#define HP_TIMING_DIFF_INIT()
|
||||||
#define HP_TIMING_DIFF(Diff, Start, End)
|
#define HP_TIMING_DIFF(Diff, Start, End)
|
||||||
|
@ -49,8 +49,6 @@
|
|||||||
- hp_timing_t: This is the type for variables used to store the time
|
- hp_timing_t: This is the type for variables used to store the time
|
||||||
values.
|
values.
|
||||||
|
|
||||||
- HP_TIMING_ZERO: clear `hp_timing_t' object.
|
|
||||||
|
|
||||||
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
||||||
parameter.
|
parameter.
|
||||||
|
|
||||||
@ -83,9 +81,6 @@
|
|||||||
/* We use 64bit values for the times. */
|
/* We use 64bit values for the times. */
|
||||||
typedef unsigned long long int hp_timing_t;
|
typedef unsigned long long int hp_timing_t;
|
||||||
|
|
||||||
/* Set timestamp value to zero. */
|
|
||||||
#define HP_TIMING_ZERO(Var) (Var) = (0)
|
|
||||||
|
|
||||||
/* That's quite simple. Use the `rdtsc' instruction. Note that the value
|
/* That's quite simple. Use the `rdtsc' instruction. Note that the value
|
||||||
might not be 100% accurate since there might be some more instructions
|
might not be 100% accurate since there might be some more instructions
|
||||||
running in this moment. This could be changed by using a barrier like
|
running in this moment. This could be changed by using a barrier like
|
||||||
|
@ -43,8 +43,6 @@
|
|||||||
- hp_timing_t: This is the type for variables used to store the time
|
- hp_timing_t: This is the type for variables used to store the time
|
||||||
values.
|
values.
|
||||||
|
|
||||||
- HP_TIMING_ZERO: clear `hp_timing_t' object.
|
|
||||||
|
|
||||||
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
||||||
parameter.
|
parameter.
|
||||||
|
|
||||||
@ -77,10 +75,6 @@
|
|||||||
/* We use 64bit values for the times. */
|
/* We use 64bit values for the times. */
|
||||||
typedef unsigned long int hp_timing_t;
|
typedef unsigned long int hp_timing_t;
|
||||||
|
|
||||||
/* Set timestamp value to zero. */
|
|
||||||
#define HP_TIMING_ZERO(Var) (Var) = (0)
|
|
||||||
|
|
||||||
|
|
||||||
/* The Itanium/Merced has a bug where the ar.itc register value read
|
/* The Itanium/Merced has a bug where the ar.itc register value read
|
||||||
is not correct in some situations. The solution is to read again.
|
is not correct in some situations. The solution is to read again.
|
||||||
For now we always do this until we know how to recognize a fixed
|
For now we always do this until we know how to recognize a fixed
|
||||||
|
@ -42,8 +42,6 @@
|
|||||||
- hp_timing_t: This is the type for variables used to store the time
|
- hp_timing_t: This is the type for variables used to store the time
|
||||||
values.
|
values.
|
||||||
|
|
||||||
- HP_TIMING_ZERO: clear `hp_timing_t' object.
|
|
||||||
|
|
||||||
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
||||||
parameter.
|
parameter.
|
||||||
|
|
||||||
@ -76,9 +74,6 @@
|
|||||||
/* We use 64bit values for the times. */
|
/* We use 64bit values for the times. */
|
||||||
typedef unsigned long long int hp_timing_t;
|
typedef unsigned long long int hp_timing_t;
|
||||||
|
|
||||||
/* Set timestamp value to zero. */
|
|
||||||
#define HP_TIMING_ZERO(Var) (Var) = (0)
|
|
||||||
|
|
||||||
/* That's quite simple. Use the `mftb' instruction. Note that the value
|
/* That's quite simple. Use the `mftb' instruction. Note that the value
|
||||||
might not be 100% accurate since there might be some more instructions
|
might not be 100% accurate since there might be some more instructions
|
||||||
running in this moment. This could be changed by using a barrier like
|
running in this moment. This could be changed by using a barrier like
|
||||||
|
@ -42,8 +42,6 @@
|
|||||||
- hp_timing_t: This is the type for variables used to store the time
|
- hp_timing_t: This is the type for variables used to store the time
|
||||||
values.
|
values.
|
||||||
|
|
||||||
- HP_TIMING_ZERO: clear `hp_timing_t' object.
|
|
||||||
|
|
||||||
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
||||||
parameter.
|
parameter.
|
||||||
|
|
||||||
@ -76,9 +74,6 @@
|
|||||||
/* We use 64bit values for the times. */
|
/* We use 64bit values for the times. */
|
||||||
typedef unsigned long long int hp_timing_t;
|
typedef unsigned long long int hp_timing_t;
|
||||||
|
|
||||||
/* Set timestamp value to zero. */
|
|
||||||
#define HP_TIMING_ZERO(Var) (Var) = (0)
|
|
||||||
|
|
||||||
/* That's quite simple. Use the `mftb' instruction. Note that the value
|
/* That's quite simple. Use the `mftb' instruction. Note that the value
|
||||||
might not be 100% accurate since there might be some more instructions
|
might not be 100% accurate since there might be some more instructions
|
||||||
running in this moment. This could be changed by using a barrier like
|
running in this moment. This could be changed by using a barrier like
|
||||||
|
@ -29,8 +29,6 @@
|
|||||||
|
|
||||||
typedef unsigned long long int hp_timing_t;
|
typedef unsigned long long int hp_timing_t;
|
||||||
|
|
||||||
#define HP_TIMING_ZERO(Var) (Var) = (0)
|
|
||||||
|
|
||||||
#define HP_TIMING_NOW(Var) \
|
#define HP_TIMING_NOW(Var) \
|
||||||
__asm__ __volatile__ ("rd %%tick, %L0\n\t" \
|
__asm__ __volatile__ ("rd %%tick, %L0\n\t" \
|
||||||
"srlx %L0, 32, %H0" \
|
"srlx %L0, 32, %H0" \
|
||||||
|
@ -29,8 +29,6 @@
|
|||||||
|
|
||||||
typedef unsigned long int hp_timing_t;
|
typedef unsigned long int hp_timing_t;
|
||||||
|
|
||||||
#define HP_TIMING_ZERO(Var) (Var) = (0)
|
|
||||||
|
|
||||||
#define HP_TIMING_NOW(Var) __asm__ __volatile__ ("rd %%tick, %0" : "=r" (Var))
|
#define HP_TIMING_NOW(Var) __asm__ __volatile__ ("rd %%tick, %0" : "=r" (Var))
|
||||||
|
|
||||||
#define HP_TIMING_DIFF_INIT() \
|
#define HP_TIMING_DIFF_INIT() \
|
||||||
|
Reference in New Issue
Block a user