From 06aca924f814c228b33bdba1b59a452751b4b929 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Thu, 25 Oct 2007 18:59:01 +0000 Subject: Further optimised the filter vector math assembly for coldfire, and added assembly filter vector math for ARM. Both make use of the fact that the first argument of the vector functions is longword aligned. * The ARM version is tailored for ARM7TDMI, and would slow down arm9 or higher. Introduced a new CPU_ macro for ARM7TDMI. Speedup for coldfire: -c3000 104%->109%, -c4000 43%->46%, -c5000 1.7%->2.0%. Speedup for PP502x: -c2000 66%->75%, -c3000 37%->48%, -c4000 11%->18%, -c5000 2.5%->3.7% git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15304 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/config.h b/firmware/export/config.h index 0801409cd4..05938d14ec 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -309,6 +309,11 @@ #define CPU_PP502x #endif +/* define for all cpus from ARM7TDMI family (for specific optimisations) */ +#if defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == DSC25) +#define CPU_ARM7TDMI +#endif + /* define for all cpus from ARM family */ #if defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == S3C2440) \ || (CONFIG_CPU == DSC25) || (CONFIG_CPU == IMX31L) || (CONFIG_CPU == DM320) -- cgit v1.2.3