changeset 6513:713c4fd84e0b libavcodec

Hardcode register to prevent aparent miscompilation. Fixes regression tests with gcc 2.95.
author michael
date Thu, 20 Mar 2008 14:24:29 +0000
parents 33ac9c5524cc
children 77de2a1737d4
files i386/dsputil_mmx.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/i386/dsputil_mmx.c	Thu Mar 20 14:09:31 2008 +0000
+++ b/i386/dsputil_mmx.c	Thu Mar 20 14:24:29 2008 +0000
@@ -994,7 +994,7 @@
         "add %4, %1                       \n\t"\
         "decl %2                          \n\t"\
         " jnz 1b                          \n\t"\
-        : "+a"(src), "+c"(dst), "+g"(h)\
+        : "+a"(src), "+c"(dst), "+D"(h)\
         : "d"((long)srcStride), "S"((long)dstStride), /*"m"(ff_pw_20), "m"(ff_pw_3),*/ "m"(temp), "m"(ROUNDER)\
         : "memory"\
     );\
@@ -1105,7 +1105,7 @@
         "add %4, %1                       \n\t"\
         "decl %2                          \n\t"\
         " jnz 1b                          \n\t"\
-        : "+a"(src), "+c"(dst), "+g"(h)\
+        : "+a"(src), "+c"(dst), "+d"(h)\
         : "S"((long)srcStride), "D"((long)dstStride), /*"m"(ff_pw_20), "m"(ff_pw_3),*/ "m"(ROUNDER)\
         : "memory"\
     );\