aboutsummaryrefslogtreecommitdiffstats
path: root/libFDK/include/FDK_archdef.h
diff options
context:
space:
mode:
authorMark Harris <mark.hsj@gmail.com>2014-05-26 12:23:56 -0700
committerMark Harris <mark.hsj@gmail.com>2014-05-26 12:23:56 -0700
commitc15b653b99fbf573ff0aaa2b8c579b0cae693f9c (patch)
treef9b2bb5090d9c97fdf1b761d8d00fa7590611d5f /libFDK/include/FDK_archdef.h
parent5e154c7ed1c801ca8804ce4715345aee9c2c141c (diff)
downloadfdk-aac-c15b653b99fbf573ff0aaa2b8c579b0cae693f9c.tar.gz
fdk-aac-c15b653b99fbf573ff0aaa2b8c579b0cae693f9c.tar.bz2
fdk-aac-c15b653b99fbf573ff0aaa2b8c579b0cae693f9c.zip
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.
Diffstat (limited to 'libFDK/include/FDK_archdef.h')
-rw-r--r--libFDK/include/FDK_archdef.h10
1 files changed, 9 insertions, 1 deletions
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)! <<<<