mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
Try to fix previous commit on 32-bit.
git-svn-id: svn://localhost/ardour2/branches/3.0@11248 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
36ec03358f
commit
381346ba5f
1 changed files with 16 additions and 0 deletions
|
|
@ -43,6 +43,8 @@ typedef uint64_t cycles_t;
|
|||
|
||||
extern cycles_t cacheflush_time;
|
||||
|
||||
#if defined(__x86_64__)
|
||||
|
||||
#define rdtscll(lo, hi) \
|
||||
__asm__ __volatile__("rdtsc" : "=a" (lo), "=d" (hi))
|
||||
|
||||
|
|
@ -54,6 +56,20 @@ static inline cycles_t get_cycles (void)
|
|||
return lo;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#define rdtscll(val) \
|
||||
__asm__ __volatile__("rdtsc" : "=A" (val))
|
||||
|
||||
static inline cycles_t get_cycles (void)
|
||||
{
|
||||
cycles_t ret;
|
||||
|
||||
rdtscll(ret);
|
||||
return ret & 0xffffffff;
|
||||
}
|
||||
#endif
|
||||
|
||||
#elif defined(__powerpc__)
|
||||
|
||||
#define CPU_FTR_601 0x00000100
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue