[x264-devel] commit: Fix potential miscompilation of some inline asm ( Jason Garrett-Glaser )

git version control git at videolan.org
Mon Sep 29 09:23:03 CEST 2008


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Mon Sep 29 00:11:38 2008 -0700| [73ab0e4ea53f67eabae1005cda5a111e00dc31e3] | committer: Jason Garrett-Glaser 

Fix potential miscompilation of some inline asm
Caused problems under some gcc 4.x versions with predictive lossless

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=73ab0e4ea53f67eabae1005cda5a111e00dc31e3
---

 common/x86/util.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/x86/util.h b/common/x86/util.h
index 1e45969..63fb09f 100644
--- a/common/x86/util.h
+++ b/common/x86/util.h
@@ -121,7 +121,7 @@ static ALWAYS_INLINE int array_non_zero_int_mmx( void *v, int i_count )
             "packsswb %%mm0,   %%mm0 \n"
             "movd     %%mm0,   %0    \n"
             :"=r"(nonzero)
-            :"r"(v)
+            :"r"(v), "m"(*(struct {char x[128];} *)v)
         );
         return !!nonzero;
     }



More information about the x264-devel mailing list