changeset 35579:6b169870ae30

Reduce register usage to fix the compilation in x86.
author upsuper
date Thu, 13 Dec 2012 02:17:27 +0000
parents d186ebe43c68
children f47dbb805ecb
files libmpcodecs/vf_ass.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_ass.c	Wed Dec 12 17:34:50 2012 +0000
+++ b/libmpcodecs/vf_ass.c	Thu Dec 13 02:17:27 2012 +0000
@@ -218,7 +218,7 @@
     struct dirty_rows_extent *dr = vf->priv->dirty_rows;
     uint8_t *dst = vf->dmpi->planes[0];
     int stride = vf->dmpi->stride[0];
-    int is_uyvy = vf->priv->outfmt == IMGFMT_UYVY;
+    int32_t is_uyvy = vf->priv->outfmt == IMGFMT_UYVY;
     int i;
 
     CLEAN_XMM(7);
@@ -258,8 +258,8 @@
 
                 "movdqu     (%[dst], %[j], 2),  %%xmm1 \n\t"
                 "movdqa     %%xmm1, %%xmm3 \n\t"
-                "test       %[f],   %[f] \n\t"
-                "jz         11f \n\t"
+                "cmpl       $0, %[f] \n\t"
+                "je         11f \n\t"
                 "psrlw      $8, %%xmm1 \n\t"
                 "psllw      $8, %%xmm3 \n\t"
                 "psrlw      $8, %%xmm3 \n\t"
@@ -281,8 +281,8 @@
                 "packuswb   %%xmm7, %%xmm5 \n\t"
                 "packuswb   %%xmm7, %%xmm6 \n\t"
                 "punpcklbw  %%xmm6, %%xmm5 \n\t"
-                "test       %[f],   %[f] \n\t"
-                "jz         21f \n\t"
+                "cmpl       $0, %[f] \n\t"
+                "je         21f \n\t"
                 "punpcklbw  %%xmm1, %%xmm3 \n\t"
                 "punpcklbw  %%xmm4, %%xmm5 \n\t"
                 "paddb      %%xmm5, %%xmm3 \n\t"
@@ -308,7 +308,7 @@
                     [src_v] "r" (src_v + i * outw),
                     [j]     "r" (xmin),
                     [xmax]  "g" (xmax),
-                    [f]     "r" (is_uyvy)
+                    [f]     "g" (is_uyvy)
         );
     }
 }