aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/mathops.h
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-04-19 09:56:01 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-04-19 09:56:01 +0200
commitb38910c9790253b362839042a17e13252c1d4b90 (patch)
treee0914971cbc660f5bf96de7f4a77b7d5db7f4111 /libavcodec/x86/mathops.h
parent72c93abaad708c013fd407a0c2e8288ebd9285d1 (diff)
downloadffmpeg-b38910c9790253b362839042a17e13252c1d4b90.tar.gz
Fix compilation with !HAVE_6REGS.
Can be tested with: $ ./configure --cc='cc -m32' --disable-optimizations --enable-pic
Diffstat (limited to 'libavcodec/x86/mathops.h')
-rw-r--r--libavcodec/x86/mathops.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/x86/mathops.h b/libavcodec/x86/mathops.h
index 1f049c0df9..1cca05d658 100644
--- a/libavcodec/x86/mathops.h
+++ b/libavcodec/x86/mathops.h
@@ -24,6 +24,7 @@
#include "config.h"
#include "libavutil/common.h"
+#include "libavutil/x86/asm.h"
#if HAVE_INLINE_ASM
@@ -88,6 +89,7 @@ static inline av_const int mid_pred(int a, int b, int c)
return i;
}
+#if HAVE_6REGS
#define COPY3_IF_LT(x, y, a, b, c, d)\
__asm__ volatile(\
"cmpl %0, %3 \n\t"\
@@ -97,6 +99,7 @@ __asm__ volatile(\
: "+&r" (x), "+&r" (a), "+r" (c)\
: "r" (y), "r" (b), "r" (d)\
);
+#endif /* HAVE_6REGS */
#endif /* HAVE_I686 */
#define MASK_ABS(mask, level) \