mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 13:48:02 +02:00
[perf-suite] Explicitly read the results of rdtsc from edx:eax.
The =A format used to read a 64 bit result from rdtsc works on x86, but not on x86-64.
This commit is contained in:
parent
2fb59b3ebd
commit
55e06745a6
1 changed files with 3 additions and 3 deletions
|
|
@ -70,9 +70,9 @@
|
|||
static inline cairo_perf_ticks_t
|
||||
oil_profile_stamp_rdtsc (void)
|
||||
{
|
||||
uint64_t ts;
|
||||
__asm__ __volatile__("rdtsc\n" : "=A" (ts));
|
||||
return ts;
|
||||
unsigned a, d;
|
||||
__asm__ __volatile__("rdtsc" : "=a" (a), "=d" (d));
|
||||
return ((uint64_t)a) | (((uint64_t)d) << 32);
|
||||
}
|
||||
#define OIL_STAMP oil_profile_stamp_rdtsc
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue