Skip to content
Snippets Groups Projects
Commit a06a5b78 authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Derek Buitenhuis
Browse files

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: default avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: default avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent 9997a812
No related branches found
No related tags found
No related merge requests found
...@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment