summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2010-02-01 01:36:46 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2010-02-01 01:36:46 +0000
commitbff5a35c3c51ebe1fe72ee20147b16ede847971d (patch)
tree549fc29d08c298462b91b9d1cfc054d704faa4bd /apps/codecs
parent40a3e806974ff482006d4ee99b718a52d1e85224 (diff)
FS#10943, optimized division and clz routines to replace libgcc routines for ARM. Replaces libgcc support functions for unsigned and signed 32-bit division on ARMv4 and up, and leading-zero count on ARMv4.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24432 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/lib/SOURCES1
-rw-r--r--apps/codecs/lib/codeclib.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/codecs/lib/SOURCES b/apps/codecs/lib/SOURCES
index ffbe1af92e..a8c3feb1aa 100644
--- a/apps/codecs/lib/SOURCES
+++ b/apps/codecs/lib/SOURCES
@@ -8,6 +8,7 @@ mdct_lookup.c
mdct_arm.S
setjmp_arm.S
udiv32_arm.S
+../../../firmware/target/arm/support-arm.S
#endif
#ifdef CPU_COLDFIRE
diff --git a/apps/codecs/lib/codeclib.h b/apps/codecs/lib/codeclib.h
index 926035f05e..2d34523de5 100644
--- a/apps/codecs/lib/codeclib.h
+++ b/apps/codecs/lib/codeclib.h
@@ -65,7 +65,7 @@ void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, con
extern void mdct_backward(int n, int32_t *in, int32_t *out);
-#ifdef CPU_ARM
+#if defined(CPU_ARM) && (ARM_ARCH < 5 || defined(USE_IRAM))
/* optimised unsigned integer division for ARMv4, in IRAM */
unsigned udiv32_arm(unsigned a, unsigned b);
#define UDIV32(a, b) udiv32_arm(a, b)