mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Merge 3.4 (ceval.c)
This commit is contained in:
commit
60b33cc6a5
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
32-bit pieces of the result. */
|
||||
|
||||
#define READ_TIMESTAMP(val) \
|
||||
__asm__ __volatile__("rdtsc" : \
|
||||
"=a" (((int*)&(val))[0]), "=d" (((int*)&(val))[1]));
|
||||
#define READ_TIMESTAMP(val) do { \
|
||||
unsigned int h, l; \
|
||||
__asm__ __volatile__("rdtsc" : "=a" (l), "=d" (h)); \
|
||||
(val) = ((uint64)l) | (((uint64)h) << 32); \
|
||||
} while(0)
|
||||
|
||||
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue