Commit 659df32a authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b43860ee
...@@ -74,7 +74,7 @@ static av_always_inline av_const int64_t MUL64(int a, int b) ...@@ -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) static inline av_const int mid_pred(int a, int b, int c)
{ {
int i=b; int i=b;
__asm__ volatile( __asm__ (
"cmp %2, %1 \n\t" "cmp %2, %1 \n\t"
"cmovg %1, %0 \n\t" "cmovg %1, %0 \n\t"
"cmovg %2, %1 \n\t" "cmovg %2, %1 \n\t"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment