From c15b653b99fbf573ff0aaa2b8c579b0cae693f9c Mon Sep 17 00:00:00 2001 From: Mark Harris Date: Mon, 26 May 2014 12:23:56 -0700 Subject: Add ppc optimization for clz and fixmul Optimize ppc/ppc64 similar to i386/x86_64, approximately doubling encoding speed on a Power Mac G5 running OS X 10.5.8. --- libFDK/include/FDK_archdef.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libFDK/include/FDK_archdef.h') diff --git a/libFDK/include/FDK_archdef.h b/libFDK/include/FDK_archdef.h index 6628b90..cffb943 100644 --- a/libFDK/include/FDK_archdef.h +++ b/libFDK/include/FDK_archdef.h @@ -162,7 +162,7 @@ amm-info@iis.fraunhofer.de /* Define preferred Multiplication type */ #if defined(FDK_HIGH_PERFORMANCE) && !defined(FDK_HIGH_QUALITY) /* FDK_HIGH_PERFORMANCE */ -#if defined(__mips__) || defined(__powerpc__) || defined(__sh__) +#if defined(__mips__) || defined(__sh__) #define ARCH_PREFER_MULT_16x16 #undef SINETABLE_16BIT #undef POW2COEFF_16BIT @@ -205,6 +205,14 @@ amm-info@iis.fraunhofer.de #define POW2COEFF_16BIT #define LDCOEFF_16BIT +#elif defined(__powerpc__) +#define ARCH_PREFER_MULT_32x32 +#define ARCH_PREFER_MULT_32x16 +#define SINETABLE_16BIT +#define POW2COEFF_16BIT +#define LDCOEFF_16BIT +#define WINDOWTABLE_16BIT + #else #error >>>> Please set architecture characterization defines for your platform (FDK_HIGH_PERFORMANCE)! <<<< -- cgit v1.2.3