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:
Carl Hetherington 2012-01-14 23:32:03 +00:00
parent 36ec03358f
commit 381346ba5f

View file

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