From f7813a5324be39d13ab536c245d15dfc602a7849 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 29 Dec 2013 12:19:38 +0000 Subject: basic type mechanism working --- ffmpeg/libavutil/ppc/timer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ffmpeg/libavutil/ppc/timer.h') diff --git a/ffmpeg/libavutil/ppc/timer.h b/ffmpeg/libavutil/ppc/timer.h index 155fc01..b28e624 100644 --- a/ffmpeg/libavutil/ppc/timer.h +++ b/ffmpeg/libavutil/ppc/timer.h @@ -23,6 +23,8 @@ #include +#include "config.h" + #define AV_READ_TIME read_time static inline uint64_t read_time(void) @@ -31,12 +33,11 @@ static inline uint64_t read_time(void) /* from section 2.2.1 of the 32-bit PowerPC PEM */ __asm__ volatile( - "1:\n" "mftbu %2\n" "mftb %0\n" "mftbu %1\n" "cmpw %2,%1\n" - "bne 1b\n" + "bne $-0x10\n" : "=r"(tbl), "=r"(tbu), "=r"(temp) : : "cc"); -- cgit v1.2.3