From 6eecb8234333fed121714796ab2649d1518f2340 Mon Sep 17 00:00:00 2001 From: mru Date: Thu, 5 Mar 2009 21:20:13 +0000 Subject: [PATCH] ARM: disable inline asm for armcc git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17831 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/arm/mathops.h | 4 ++++ libavutil/internal.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/arm/mathops.h b/libavcodec/arm/mathops.h index 0d8e04424..2da9c1cab 100644 --- a/libavcodec/arm/mathops.h +++ b/libavcodec/arm/mathops.h @@ -25,6 +25,8 @@ #include #include "libavutil/common.h" +#if HAVE_INLINE_ASM + # define MULL MULL static inline av_const int MULL(int a, int b, unsigned shift) { @@ -108,4 +110,6 @@ static inline av_const int mid_pred(int a, int b, int c) return m; } +#endif /* HAVE_INLINE_ASM */ + #endif /* AVCODEC_ARM_MATHOPS_H */ diff --git a/libavutil/internal.h b/libavutil/internal.h index f5f769e2c..4191aa8e5 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -134,7 +134,7 @@ extern const uint32_t ff_inverse[256]; );\ ret;\ }) -#elif HAVE_ARMV6 +#elif HAVE_ARMV6 && HAVE_INLINE_ASM static inline av_const int FASTDIV(int a, int b) { int r, t; @@ -145,7 +145,7 @@ static inline av_const int FASTDIV(int a, int b) : "=&r"(r), "=&r"(t) : "r"(a), "r"(b), "r"(ff_inverse)); return r; } -#elif ARCH_ARM +#elif ARCH_ARM && HAVE_INLINE_ASM static inline av_const int FASTDIV(int a, int b) { int r, t; -- 2.39.2