]> git.sesse.net Git - x264/blobdiff - common/x86/quant-a.asm
x86inc: Make cpuflag() and notcpuflag() return 0 or 1
[x264] / common / x86 / quant-a.asm
index 188f3c1780a78384ee426cfe15311067b52cdfe0..305ae26a31879f013ebaa1d1c7e68708b0f0e8f0 100644 (file)
@@ -841,14 +841,7 @@ DEQUANT_DC w, pmullw
 ;-----------------------------------------------------------------------------
 
 %macro OPTIMIZE_CHROMA_2x2_DC 0
-%assign %%regs 5
-%if cpuflag(sse4)
-    %assign %%regs %%regs-1
-%endif
-%if ARCH_X86_64 == 0
-    %assign %%regs %%regs+1      ; t0-t4 are volatile on x86-64
-%endif
-cglobal optimize_chroma_2x2_dc, 0,%%regs,7
+cglobal optimize_chroma_2x2_dc, 0,6-cpuflag(sse4),7
     movifnidn t0, r0mp
     movd      m2, r1m
     movq      m1, [t0]