]> git.sesse.net Git - ffmpeg/commitdiff
x86: PMINUB: port to cpuflags
authorDiego Biurrun <diego@biurrun.de>
Sun, 15 Jul 2012 15:43:50 +0000 (17:43 +0200)
committerDiego Biurrun <diego@biurrun.de>
Fri, 2 Nov 2012 14:38:15 +0000 (15:38 +0100)
libavcodec/x86/ac3dsp.asm
libavutil/x86/x86util.asm

index 9d66fda7bb3b8a38af730768fd7ffa56792e5e85..2c453c59f5fec0196bbf9b2e59b41683492cba99 100644 (file)
@@ -63,12 +63,10 @@ cglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset
     REP_RET
 %endmacro
 
-%define PMINUB PMINUB_MMX
 %define LOOP_ALIGN
 INIT_MMX mmx
 AC3_EXPONENT_MIN
 %if HAVE_MMXEXT
-%define PMINUB PMINUB_MMXEXT
 %define LOOP_ALIGN ALIGN 16
 INIT_MMX mmxext
 AC3_EXPONENT_MIN
@@ -77,7 +75,6 @@ AC3_EXPONENT_MIN
 INIT_XMM sse2
 AC3_EXPONENT_MIN
 %endif
-%undef PMINUB
 %undef LOOP_ALIGN
 
 ;-----------------------------------------------------------------------------
index 761cea0a8ec453b0de65fbfbac9b89d03a97a401..ca0041acf7aafeace866d270bbe9edaf1585d5aa 100644 (file)
     movh  [%7+%8], %4
 %endmacro
 
-%macro PMINUB_MMX 3 ; dst, src, tmp
+%macro PMINUB 3 ; dst, src, ignored
+%if cpuflag(mmxext)
+    pminub   %1, %2
+%else ; dst, src, tmp
     mova     %3, %1
     psubusb  %3, %2
     psubb    %1, %3
-%endmacro
-
-%macro PMINUB_MMXEXT 3 ; dst, src, ignored
-    pminub   %1, %2
+%endif
 %endmacro
 
 %macro SPLATW 2-3 0