summaryrefslogtreecommitdiff
path: root/apps/codecs/libmusepack/mpcdec.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libmusepack/mpcdec.h')
-rw-r--r--apps/codecs/libmusepack/mpcdec.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/apps/codecs/libmusepack/mpcdec.h b/apps/codecs/libmusepack/mpcdec.h
index d4c3bd22fc..68754dcbd2 100644
--- a/apps/codecs/libmusepack/mpcdec.h
+++ b/apps/codecs/libmusepack/mpcdec.h
@@ -52,23 +52,42 @@ extern "C" {
52#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR 52#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR
53#define ICODE_ATTR_MPC_LARGE_IRAM 53#define ICODE_ATTR_MPC_LARGE_IRAM
54#define ICONST_ATTR_MPC_LARGE_IRAM ICONST_ATTR 54#define ICONST_ATTR_MPC_LARGE_IRAM ICONST_ATTR
55/* Does not fit into IRAM. */
56#define IBSS_ATTR_MPC_BITBUFFER
57#define ICODE_ATTR_MPC_SV8_BS_DEC
55/* Keep the data arrays of bitsreadr.c in IRAM. */ 58/* Keep the data arrays of bitsreadr.c in IRAM. */
56#define ICONST_ATTR_MPC_BITSREADER ICONST_ATTR 59#define ICONST_ATTR_MPC_BITSREADER ICONST_ATTR
57 60
58#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X) 61#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
59/* Enough IRAM to move additional data and code to it. */ 62/* Enough IRAM to move additional data and code to it. */
60#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR 63#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR
61#define ICODE_ATTR_MPC_LARGE_IRAM ICODE_ATTR 64#define ICODE_ATTR_MPC_LARGE_IRAM ICODE_ATTR
62#define ICONST_ATTR_MPC_LARGE_IRAM ICONST_ATTR 65#define ICONST_ATTR_MPC_LARGE_IRAM ICONST_ATTR
66/* Does not fit into IRAM. */
67#define IBSS_ATTR_MPC_BITBUFFER
68#define ICODE_ATTR_MPC_SV8_BS_DEC
63/* Not putting the data arrays of bitsreader.c to IRAM allows to move the 69/* Not putting the data arrays of bitsreader.c to IRAM allows to move the
64 * sv7/sv8 bitstream demuxing into IRAM. This config is faster. */ 70 * sv7/sv8 bitstream demuxing into IRAM. This config is faster. */
65#define ICONST_ATTR_MPC_BITSREADER 71#define ICONST_ATTR_MPC_BITSREADER
66 72
73#elif defined(CPU_S5L870X)
74/* Enough IRAM to move additional data and code to it. */
75#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR
76#define ICODE_ATTR_MPC_LARGE_IRAM ICODE_ATTR
77#define ICONST_ATTR_MPC_LARGE_IRAM ICONST_ATTR
78/* Faster when moved to IRAM. */
79#define IBSS_ATTR_MPC_BITBUFFER IBSS_ATTR
80#define ICODE_ATTR_MPC_SV8_BS_DEC ICODE_ATTR
81/* Not faster when moved to IRAM. */
82#define ICONST_ATTR_MPC_BITSREADER
83
67#else 84#else
68/* Not enough IRAM available. */ 85/* Not enough IRAM available. */
69#define IBSS_ATTR_MPC_LARGE_IRAM 86#define IBSS_ATTR_MPC_LARGE_IRAM
70#define ICODE_ATTR_MPC_LARGE_IRAM 87#define ICODE_ATTR_MPC_LARGE_IRAM
71#define ICONST_ATTR_MPC_LARGE_IRAM 88#define ICONST_ATTR_MPC_LARGE_IRAM
89#define IBSS_ATTR_MPC_BITBUFFER
90#define ICODE_ATTR_MPC_SV8_BS_DEC
72#define ICONST_ATTR_MPC_BITSREADER 91#define ICONST_ATTR_MPC_BITSREADER
73#endif 92#endif
74 93