# HG changeset patch # User upsuper # Date 1355365047 0 # Node ID 6b169870ae3081de079dab4461a63628e36e6fbf # Parent d186ebe43c6840572277242287ab10236f9fa011 Reduce register usage to fix the compilation in x86. diff -r d186ebe43c68 -r 6b169870ae30 libmpcodecs/vf_ass.c --- 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) ); } }