summaryrefslogtreecommitdiff
path: root/apps/codecs/demac/libdemac/demac_config.h
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2010-02-04 05:49:37 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2010-02-04 05:49:37 +0000
commit8ed7bda64cb98d491431fd130eb754c6320441a0 (patch)
treebe9b6340aaaba3820e87a57c7c3db545c9c2cf15 /apps/codecs/demac/libdemac/demac_config.h
parent7ed87517f734d7d70ab6f294735a77a65bd22e42 (diff)
downloadrockbox-8ed7bda64cb98d491431fd130eb754c6320441a0.tar.gz
rockbox-8ed7bda64cb98d491431fd130eb754c6320441a0.zip
Move udiv32_arm.S into libdemac, as this divider is specialized for the APE codec and an optimized divider is already provided for general use in codeclib.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24506 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/demac/libdemac/demac_config.h')
-rw-r--r--apps/codecs/demac/libdemac/demac_config.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/apps/codecs/demac/libdemac/demac_config.h b/apps/codecs/demac/libdemac/demac_config.h
index 13166f69ae..7388aa1059 100644
--- a/apps/codecs/demac/libdemac/demac_config.h
+++ b/apps/codecs/demac/libdemac/demac_config.h
@@ -91,10 +91,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
91 91
92/* Defaults */ 92/* Defaults */
93 93
94#ifndef UDIV32
95#define UDIV32(a, b) (a / b)
96#endif
97
98#ifndef FILTER_HISTORY_SIZE 94#ifndef FILTER_HISTORY_SIZE
99#define FILTER_HISTORY_SIZE 512 95#define FILTER_HISTORY_SIZE 512
100#endif 96#endif
@@ -109,6 +105,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
109 105
110 106
111#ifndef __ASSEMBLER__ 107#ifndef __ASSEMBLER__
108
109#if defined(CPU_ARM) && (ARM_ARCH < 5 || defined(USE_IRAM))
110/* optimised unsigned integer division for ARMv4, in IRAM */
111unsigned udiv32_arm(unsigned a, unsigned b);
112#define UDIV32(a, b) udiv32_arm(a, b)
113#else
114/* default */
115#define UDIV32(a, b) (a / b)
116#endif
117
112#include <inttypes.h> 118#include <inttypes.h>
113#if FILTER_BITS == 32 119#if FILTER_BITS == 32
114typedef int32_t filter_int; 120typedef int32_t filter_int;