mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 07:20:11 +00:00
(CPUCLOCK_P): Fix definition.
This commit is contained in:
parent
1eefffb0e7
commit
a5ff61042d
@ -25,15 +25,15 @@
|
|||||||
|
|
||||||
#if HP_TIMING_AVAIL
|
#if HP_TIMING_AVAIL
|
||||||
# define CPUCLOCK_P(clock) \
|
# define CPUCLOCK_P(clock) \
|
||||||
((clock) != CLOCK_PROCESS_CPUTIME_ID \
|
((clock) == CLOCK_PROCESS_CPUTIME_ID \
|
||||||
&& (clock) != CLOCK_THREAD_CPUTIME_ID)
|
|| (clock) == CLOCK_THREAD_CPUTIME_ID)
|
||||||
#else
|
#else
|
||||||
# define CPUCLOCK_P(clock) 0
|
# define CPUCLOCK_P(clock) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef INVALID_CLOCK_P
|
#ifndef INVALID_CLOCK_P
|
||||||
# define INVALID_CLOCK_P(cl) \
|
# define INVALID_CLOCK_P(cl) \
|
||||||
((cl) < CLOCK_REALTIME || (cl) > CLOCK_THREAD_CPUTIME_ID || CPUCLOCK_P (cl))
|
((cl) < CLOCK_REALTIME || (cl) > CLOCK_THREAD_CPUTIME_ID)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user