We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ab70de commit 7c282efCopy full SHA for 7c282ef
src/get_clock.h
@@ -124,6 +124,14 @@ static inline cycles_t get_cycles()
124
return perf_get_cycles();
125
}
126
127
+#elif defined(__hppa__)
128
+typedef unsigned long long cycles_t;
129
+static inline cycles_t get_cycles(void)
130
+{
131
+ cycles_t clk;
132
+ asm volatile("mfctl %%cr16, %0" : "=r" (clk));
133
+ return clk;
134
+}
135
#else
136
#warning get_cycles not implemented for this architecture: attempt asm/timex.h
137
#include <asm/timex.h>
0 commit comments