summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-10-25 18:59:01 +0000
committerJens Arnold <amiconn@rockbox.org>2007-10-25 18:59:01 +0000
commit06aca924f814c228b33bdba1b59a452751b4b929 (patch)
treeac96280e8e5a8477f6b89edd16b019742134f7d2 /firmware
parent4bde8982f146f9866b4b78f7be5945c82c19d403 (diff)
downloadrockbox-06aca924f814c228b33bdba1b59a452751b4b929.tar.gz
rockbox-06aca924f814c228b33bdba1b59a452751b4b929.zip
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config.h5
1 files changed, 5 insertions, 0 deletions
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)