[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:
M Joonas Pihlaja 2008-09-25 00:17:57 +03:00
parent 2fb59b3ebd
commit 55e06745a6

View file

@ -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