We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aaafe0 commit b714341Copy full SHA for b714341
src/clock.cpp
@@ -223,6 +223,10 @@ uint64_t zmq::clock_t::rdtsc ()
223
((13 & 15) << 3) | // crm
224
((0 & 7) << 0)); // op2
225
return _ReadStatusReg (pmccntr_el0);
226
+#elif (defined(_WIN32) && defined(__GNUC__) && defined(__aarch64__))
227
+ uint64_t val;
228
+ __asm__ volatile("mrs %0, pmccntr_el0" : "=r"(val));
229
+ return val;
230
#elif (defined __GNUC__ && (defined __i386__ || defined __x86_64__))
231
uint32_t low, high;
232
__asm__ volatile("rdtsc" : "=a"(low), "=d"(high));
0 commit comments