PAPI 7.1.0.0
Loading...
Searching...
No Matches
darwin-common.h
Go to the documentation of this file.
1#ifndef _DARWIN_COMMON_H
2#define _DARWIN_COMMON_H
3
4#define min(x, y) ({ \
5 typeof(x) _min1 = (x); \
6 typeof(y) _min2 = (y); \
7 (void) (&_min1 == &_min2); \
8 _min1 < _min2 ? _min1 : _min2; })
9
10static inline pid_t
11mygettid( void )
12{
13 return pthread_self();
14}
15
16long long _darwin_get_real_cycles( void );
17long long _darwin_get_virt_usec_times( void );
19
20#endif
long long _darwin_get_real_cycles(void)
long long _darwin_get_virt_usec_times(void)
static pid_t mygettid(void)
Definition: darwin-common.h:11
long long _darwin_get_real_usec_gettimeofday(void)