diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-06-15 22:46:01 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-21 12:47:03 +0200 |
commit | 659df32a9d8984081ccd54adc3aee7daeb33388d (patch) | |
tree | 0186e847fd42cd6957767183b785cc370c0f9806 | |
parent | b43860ee0c27279f2fa020ea965c03d359f8f45c (diff) | |
download | ffmpeg-659df32a9d8984081ccd54adc3aee7daeb33388d.tar.gz |
mathops/x86: work around inline asm miscompilation with GCC 4.8.1
The volatile is not required here, and prevents a miscompilation with GCC
4.8.1 when building on x86 with --cpu=i686
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/x86/mathops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/mathops.h b/libavcodec/x86/mathops.h index e8eb274f54..9c48afeb20 100644 --- a/libavcodec/x86/mathops.h +++ b/libavcodec/x86/mathops.h @@ -74,7 +74,7 @@ static av_always_inline av_const int64_t MUL64(int a, int b) static inline av_const int mid_pred(int a, int b, int c) { int i=b; - __asm__ volatile( + __asm__ ( "cmp %2, %1 \n\t" "cmovg %1, %0 \n\t" "cmovg %2, %1 \n\t" |