Go to the documentation of this file.
25 #ifndef OPAL_SYS_TIMER_H
26 #define OPAL_SYS_TIMER_H 1
28 #include "opal_config.h"
30 #include "opal/sys/architecture.h"
32 #ifdef HAVE_SYS_TYPES_H
33 #include <sys/types.h>
38 #ifdef OMPI_DISABLE_INLINE_ASM
39 #undef OPAL_C_GCC_INLINE_ASSEMBLY
40 #define OPAL_C_GCC_INLINE_ASSEMBLY 0
41 #undef OMPI_CXX_GCC_INLINE_ASSEMBLY
42 #define OMPI_CXX_GCC_INLINE_ASSEMBLY 0
43 #undef OPAL_C_DEC_INLINE_ASSEMBLY
44 #define OPAL_C_DEC_INLINE_ASSEMBLY 0
45 #undef OMPI_CXX_DEC_INLINE_ASSEMBLY
46 #define OMPI_CXX_DEC_INLINE_ASSEMBLY 0
47 #undef OPAL_C_XLC_INLINE_ASSEMBLY
48 #define OPAL_C_XLC_INLINE_ASSEMBLY 0
49 #undef OMPI_CXX_XLC_INLINE_ASSEMBLY
50 #define OMPI_CXX_XLC_INLINE_ASSEMBLY 0
56 #if defined(c_plusplus) || defined(__cplusplus)
57 #define OMPI_GCC_INLINE_ASSEMBLY OMPI_CXX_GCC_INLINE_ASSEMBLY
58 #define OMPI_DEC_INLINE_ASSEMBLY OMPI_CXX_DEC_INLINE_ASSEMBLY
59 #define OMPI_XLC_INLINE_ASSEMBLY OMPI_CXX_XLC_INLINE_ASSEMBLY
61 #define OMPI_GCC_INLINE_ASSEMBLY OPAL_C_GCC_INLINE_ASSEMBLY
62 #define OMPI_DEC_INLINE_ASSEMBLY OPAL_C_DEC_INLINE_ASSEMBLY
63 #define OMPI_XLC_INLINE_ASSEMBLY OPAL_C_XLC_INLINE_ASSEMBLY
80 #elif OPAL_ASSEMBLY_ARCH == OMPI_AMD64
81 #include "opal/sys/amd64/timer.h"
82 #elif OPAL_ASSEMBLY_ARCH == OMPI_ARM
83 #include "opal/sys/arm/timer.h"
84 #elif OPAL_ASSEMBLY_ARCH == OMPI_IA32
85 #include "opal/sys/ia32/timer.h"
86 #elif OPAL_ASSEMBLY_ARCH == OMPI_IA64
87 #include "opal/sys/ia64/timer.h"
88 #elif OPAL_ASSEMBLY_ARCH == OMPI_POWERPC32
89 #include "opal/sys/powerpc/timer.h"
90 #elif OPAL_ASSEMBLY_ARCH == OMPI_POWERPC64
91 #include "opal/sys/powerpc/timer.h"
92 #elif OPAL_ASSEMBLY_ARCH == OMPI_SPARCV9_32
93 #include "opal/sys/sparcv9/timer.h"
94 #elif OPAL_ASSEMBLY_ARCH == OMPI_SPARCV9_64
95 #include "opal/sys/sparcv9/timer.h"
96 #elif OPAL_ASSEMBLY_ARCH == OMPI_WINDOWS
97 #include "opal/sys/win32/timer.h"
98 #elif OPAL_ASSEMBLY_ARCH == OMPI_MIPS
99 #include "opal/sys/mips/timer.h"
103 #ifndef OPAL_HAVE_SYS_TIMER_GET_CYCLES
104 #define OPAL_HAVE_SYS_TIMER_GET_CYCLES 0
106 typedef long opal_timer_t;