Fix get_cycles for 32-bits x86
[urcu.git] / test_rwlock_timing.c
index 065c2d34038498b90152fa1d6377d4cf36006f38..6e0523ce0614a5f3e6890460d480774c08974f7a 100644 (file)
@@ -38,7 +38,7 @@ static inline pid_t gettid(void)
 #define rdtscll(val) do { \
      unsigned int __a,__d; \
      asm volatile("rdtsc" : "=a" (__a), "=d" (__d)); \
-     (val) = ((unsigned long)__a) | (((unsigned long)__d)<<32); \
+     (val) = ((unsigned long long)__a) | (((unsigned long long)__d)<<32); \
 } while(0)
 
 typedef unsigned long long cycles_t;
This page took 0.023462 seconds and 4 git commands to generate.