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:
parent
d51f3e34b4
commit
af5f57d807
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user