From 5750d6c5e9d184488f4dc0f9e81cbcc28cb2f2d1 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 3 Aug 2015 03:28:37 -0300 Subject: x86: move XOP emulation code back to x86inc Only two functions that use xop multiply-accumulate instructions where the first operand is the same as the fourth actually took advantage of the macros. This further reduces differences with x264's x86inc. Reviewed-by: Ronald S. Bultje Signed-off-by: James Almer --- libavutil/x86/x86util.asm | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'libavutil/x86/x86util.asm') diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm index d6702c1466..bf64d179b9 100644 --- a/libavutil/x86/x86util.asm +++ b/libavutil/x86/x86util.asm @@ -765,25 +765,6 @@ %endif %endmacro -%macro PMA_EMU 4 - %macro %1 5-8 %2, %3, %4 - %if cpuflag(xop) - v%6 %1, %2, %3, %4 - %elifidn %1, %4 - %7 %5, %2, %3 - %8 %1, %4, %5 - %else - %7 %1, %2, %3 - %8 %1, %4 - %endif - %endmacro -%endmacro - -PMA_EMU PMACSWW, pmacsww, pmullw, paddw -PMA_EMU PMACSDD, pmacsdd, pmulld, paddd ; sse4 emulation -PMA_EMU PMACSDQL, pmacsdql, pmuldq, paddq ; sse4 emulation -PMA_EMU PMADCSWD, pmadcswd, pmaddwd, paddd - ; Wrapper for non-FMA version of fmaddps %macro FMULADD_PS 5 %if cpuflag(fma3) || cpuflag(fma4) -- cgit v1.2.3