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