summaryrefslogtreecommitdiff
path: root/apps/codecs/libatrac/atrac3.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libatrac/atrac3.c')
-rw-r--r--apps/codecs/libatrac/atrac3.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/apps/codecs/libatrac/atrac3.c b/apps/codecs/libatrac/atrac3.c
index 499a9f6572..be41df5aad 100644
--- a/apps/codecs/libatrac/atrac3.c
+++ b/apps/codecs/libatrac/atrac3.c
@@ -54,15 +54,17 @@
54#define FFMIN(a,b) ((a) > (b) ? (b) : (a)) 54#define FFMIN(a,b) ((a) > (b) ? (b) : (a))
55#define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0) 55#define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)
56 56
57static VLC spectral_coeff_tab[7]; 57#if defined(CPU_ARM) && (ARM_ARCH >= 5)
58#if defined(CPU_ARM) && (ARM_ARCH >= 5) /*ARMv5e+ uses 32x16 multiplication*/ 58 #define QMFWIN_TYPE int16_t /* ARMv5e+ uses 32x16 multiplication */
59static int16_t qmf_window[48] IBSS_ATTR __attribute__ ((aligned (32)));
60#else 59#else
61static int32_t qmf_window[48] IBSS_ATTR __attribute__ ((aligned (16))); 60 #define QMFWIN_TYPE int32_t
62#endif 61#endif
63static int32_t atrac3_spectrum [2][1024] IBSS_ATTR __attribute__((aligned(16))); 62
64static int32_t atrac3_IMDCT_buf[2][ 512] IBSS_ATTR __attribute__((aligned(16))); 63static VLC spectral_coeff_tab[7];
65static int32_t atrac3_prevFrame[2][1024] IBSS_ATTR; 64static QMFWIN_TYPE qmf_window[48] IBSS_ATTR MEM_ALIGN_ATTR;
65static int32_t atrac3_spectrum [2][1024] IBSS_ATTR MEM_ALIGN_ATTR;
66static int32_t atrac3_IMDCT_buf[2][ 512] IBSS_ATTR MEM_ALIGN_ATTR;
67static int32_t atrac3_prevFrame[2][1024] IBSS_ATTR MEM_ALIGN_ATTR;
66static channel_unit channel_units[2] IBSS_ATTR_LARGE_IRAM; 68static channel_unit channel_units[2] IBSS_ATTR_LARGE_IRAM;
67 69
68 70