To get this working on x86_64 cpu's is used the following patch in stun.cxx:
@@ -671,6 +671,10 @@
tick |= lowtick;
#elif defined(__GNUC__) && ( defined(__i686__) || defined(__i386__) )
asm("rdtsc" : "=A" (tick));
+#elif defined(__GNUC__) && defined(__x86_64__)
+ unsigned _a,_d;
+ asm("rdtsc" : "=A" (_a), "=D" (_d));
+ tick = ((unsigned long long) (_a)) | ((...
2009-11-29 12:57:47 UTC by jver