summaryrefslogtreecommitdiff
path: root/apps/codecs/demac/libdemac/demac_config.h
diff options
context:
space:
mode:
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;