summaryrefslogtreecommitdiff
path: root/libavutil/x86/intmath.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-01-15 13:32:58 -0300
committerJames Almer <jamrial@gmail.com>2016-01-15 13:32:58 -0300
commit36778627e24975a93c2552e6ec53e4fee4112b5b (patch)
tree27921081ae19b38b1c2b2079935e597736359394 /libavutil/x86/intmath.h
parentda6f34516b60aea0ea2e4864976706d11ef2b687 (diff)
x86/intmath: add missing early clobber to output operands
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/x86/intmath.h')
-rw-r--r--libavutil/x86/intmath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/x86/intmath.h b/libavutil/x86/intmath.h
index 2b2c869533..3e279df084 100644
--- a/libavutil/x86/intmath.h
+++ b/libavutil/x86/intmath.h
@@ -109,7 +109,7 @@ static av_always_inline av_const double av_clipd_sse2(double a, double amin, dou
#endif
__asm__ ("minsd %2, %0 \n\t"
"maxsd %1, %0 \n\t"
- : "+x"(a) : "xm"(amin), "xm"(amax));
+ : "+&x"(a) : "xm"(amin), "xm"(amax));
return a;
}
@@ -125,7 +125,7 @@ static av_always_inline av_const float av_clipf_sse(float a, float amin, float a
#endif
__asm__ ("minss %2, %0 \n\t"
"maxss %1, %0 \n\t"
- : "+x"(a) : "xm"(amin), "xm"(amax));
+ : "+&x"(a) : "xm"(amin), "xm"(amax));
return a;
}