diff options
Diffstat (limited to 'apps/codecs/libatrac/atrac3.c')
-rw-r--r-- | apps/codecs/libatrac/atrac3.c | 16 |
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 | ||
57 | static 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 */ |
59 | static int16_t qmf_window[48] IBSS_ATTR __attribute__ ((aligned (32))); | ||
60 | #else | 59 | #else |
61 | static int32_t qmf_window[48] IBSS_ATTR __attribute__ ((aligned (16))); | 60 | #define QMFWIN_TYPE int32_t |
62 | #endif | 61 | #endif |
63 | static int32_t atrac3_spectrum [2][1024] IBSS_ATTR __attribute__((aligned(16))); | 62 | |
64 | static int32_t atrac3_IMDCT_buf[2][ 512] IBSS_ATTR __attribute__((aligned(16))); | 63 | static VLC spectral_coeff_tab[7]; |
65 | static int32_t atrac3_prevFrame[2][1024] IBSS_ATTR; | 64 | static QMFWIN_TYPE qmf_window[48] IBSS_ATTR MEM_ALIGN_ATTR; |
65 | static int32_t atrac3_spectrum [2][1024] IBSS_ATTR MEM_ALIGN_ATTR; | ||
66 | static int32_t atrac3_IMDCT_buf[2][ 512] IBSS_ATTR MEM_ALIGN_ATTR; | ||
67 | static int32_t atrac3_prevFrame[2][1024] IBSS_ATTR MEM_ALIGN_ATTR; | ||
66 | static channel_unit channel_units[2] IBSS_ATTR_LARGE_IRAM; | 68 | static channel_unit channel_units[2] IBSS_ATTR_LARGE_IRAM; |
67 | 69 | ||
68 | 70 | ||