Kaydet (Commit) 60b33cc6 authored tarafından Victor Stinner's avatar Victor Stinner

Merge 3.4 (ceval.c)

...@@ -65,9 +65,11 @@ ppc_getcounter(uint64 *v) ...@@ -65,9 +65,11 @@ ppc_getcounter(uint64 *v)
even in 64-bit mode, we need to use "a" and "d" for the lower and upper even in 64-bit mode, we need to use "a" and "d" for the lower and upper
32-bit pieces of the result. */ 32-bit pieces of the result. */
#define READ_TIMESTAMP(val) \ #define READ_TIMESTAMP(val) do { \
__asm__ __volatile__("rdtsc" : \ unsigned int h, l; \
"=a" (((int*)&(val))[0]), "=d" (((int*)&(val))[1])); __asm__ __volatile__("rdtsc" : "=a" (l), "=d" (h)); \
(val) = ((uint64)l) | (((uint64)h) << 32); \
} while(0)
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment