From e76f30a57c25a3ae762fc48218e57bc46dff4410 Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Thu, 28 Jan 2010 02:28:52 +0000 Subject: Improvements to specialized dividers for APE codec: * Use Newton-Raphson divider on ARMv5e and ARMv6, about 7% speedup on Gigabeat S. * On ARMv4 targets using IRAM, remove insane filter buffer from IRAM, fill available IRAM with LUT of reciprocals for small divisors - speedup varies according to target and available IRAM, APE normal sample is approx. 109% RT on e200. * Rename apps/codecs/lib/udiv32_armv4.S to apps/codecs/lib/udiv32_arm.S, which includes dividers for all ARM targets specialized for APE. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24354 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/lib/codeclib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/codecs/lib/codeclib.h') diff --git a/apps/codecs/lib/codeclib.h b/apps/codecs/lib/codeclib.h index 517264f..926035f 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); -#if defined(CPU_ARM) && (ARM_ARCH == 4) +#ifdef CPU_ARM /* optimised unsigned integer division for ARMv4, in IRAM */ unsigned udiv32_arm(unsigned a, unsigned b); #define UDIV32(a, b) udiv32_arm(a, b) -- cgit v1.1