summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/filters.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libspeex/filters.c')
-rw-r--r--apps/codecs/libspeex/filters.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/codecs/libspeex/filters.c b/apps/codecs/libspeex/filters.c
index 13adc9c009..a8a2e0bc71 100644
--- a/apps/codecs/libspeex/filters.c
+++ b/apps/codecs/libspeex/filters.c
@@ -47,9 +47,11 @@
47#include "filters_arm4.h" 47#include "filters_arm4.h"
48#define OVERRIDE_IIR_MEM16 48#define OVERRIDE_IIR_MEM16
49#define OVERRIDE_QMF_SYNTH 49#define OVERRIDE_QMF_SYNTH
50#define OVERRIDE_SIGNAL_MUL
50#elif defined (COLDFIRE_ASM) 51#elif defined (COLDFIRE_ASM)
51#define OVERRIDE_IIR_MEM16 52#define OVERRIDE_IIR_MEM16
52#define OVERRIDE_QMF_SYNTH 53#define OVERRIDE_QMF_SYNTH
54#define OVERRIDE_SIGNAL_MUL
53#elif defined (BFIN_ASM) 55#elif defined (BFIN_ASM)
54#include "filters_bfin.h" 56#include "filters_bfin.h"
55#endif 57#endif
@@ -114,6 +116,7 @@ void highpass(const spx_word16_t *x, spx_word16_t *y, int len, int filtID, spx_m
114 116
115#ifdef FIXED_POINT 117#ifdef FIXED_POINT
116 118
119#ifndef OVERRIDE_SIGNAL_MUL
117/* FIXME: These functions are ugly and probably introduce too much error */ 120/* FIXME: These functions are ugly and probably introduce too much error */
118void signal_mul(const spx_sig_t *x, spx_sig_t *y, spx_word32_t scale, int len) 121void signal_mul(const spx_sig_t *x, spx_sig_t *y, spx_word32_t scale, int len)
119{ 122{
@@ -123,6 +126,7 @@ void signal_mul(const spx_sig_t *x, spx_sig_t *y, spx_word32_t scale, int len)
123 y[i] = SHL32(MULT16_32_Q14(EXTRACT16(SHR32(x[i],7)),scale),7); 126 y[i] = SHL32(MULT16_32_Q14(EXTRACT16(SHR32(x[i],7)),scale),7);
124 } 127 }
125} 128}
129#endif
126 130
127#ifndef SPEEX_DISABLE_ENCODER 131#ifndef SPEEX_DISABLE_ENCODER
128void signal_div(const spx_word16_t *x, spx_word16_t *y, spx_word32_t scale, int len) 132void signal_div(const spx_word16_t *x, spx_word16_t *y, spx_word32_t scale, int len)