13
0

Fix use of rdtsc on 64-bit (I think).

git-svn-id: svn://localhost/ardour2/branches/3.0@11243 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-01-14 22:02:07 +00:00
parent d51f3e34b4
commit af5f57d807

View File

@ -43,15 +43,15 @@ typedef uint64_t cycles_t;
extern cycles_t cacheflush_time;
#define rdtscll(val) \
__asm__ __volatile__("rdtsc" : "=A" (val))
#define rdtscll(lo, hi) \
__asm__ __volatile__("rdtsc" : "=a" (lo), "=d" (hi))
static inline cycles_t get_cycles (void)
{
cycles_t ret;
cycles_t lo, hi;
rdtscll(ret);
return ret & 0xffffffff;
rdtscll(lo, hi);
return lo;
}
#elif defined(__powerpc__)