[FFmpeg-cvslog] x86/intmath: add missing early clobber to output operands

James Almer git at videolan.org
Fri Jan 15 18:11:53 CET 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Jan 15 13:32:58 2016 -0300| [36778627e24975a93c2552e6ec53e4fee4112b5b] | committer: James Almer

x86/intmath: add missing early clobber to output operands

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=36778627e24975a93c2552e6ec53e4fee4112b5b
---

 libavutil/x86/intmath.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/x86/intmath.h b/libavutil/x86/intmath.h
index 2b2c869..3e279df 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;
 }
 



More information about the ffmpeg-cvslog mailing list