diff options
Diffstat (limited to 'apps/codecs/libfaad/common.h')
-rw-r--r-- | apps/codecs/libfaad/common.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/apps/codecs/libfaad/common.h b/apps/codecs/libfaad/common.h index 01164e3746..59ce806e91 100644 --- a/apps/codecs/libfaad/common.h +++ b/apps/codecs/libfaad/common.h | |||
@@ -51,6 +51,25 @@ extern struct codec_api* ci; | |||
51 | #define LOGF(...) | 51 | #define LOGF(...) |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | #if (CONFIG_CPU == MCF5250) || defined(CPU_S5L870X) | ||
55 | /* Enough IRAM but performance suffers with ICODE_ATTR. */ | ||
56 | #define IBSS_ATTR_FAAD_LARGE_IRAM IBSS_ATTR | ||
57 | #define ICODE_ATTR_FAAD_LARGE_IRAM | ||
58 | #define ICONST_ATTR_FAAD_LARGE_IRAM ICONST_ATTR | ||
59 | |||
60 | #elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) | ||
61 | /* Enough IRAM to move additional data and code to it. */ | ||
62 | #define IBSS_ATTR_FAAD_LARGE_IRAM IBSS_ATTR | ||
63 | #define ICODE_ATTR_FAAD_LARGE_IRAM ICODE_ATTR | ||
64 | #define ICONST_ATTR_FAAD_LARGE_IRAM ICONST_ATTR | ||
65 | |||
66 | #else | ||
67 | /* Not enough IRAM available. */ | ||
68 | #define IBSS_ATTR_FAAD_LARGE_IRAM | ||
69 | #define ICODE_ATTR_FAAD_LARGE_IRAM | ||
70 | #define ICONST_ATTR_FAAD_LARGE_IRAM | ||
71 | #endif | ||
72 | |||
54 | #define INLINE __inline | 73 | #define INLINE __inline |
55 | #if 0 //defined(_WIN32) && !defined(_WIN32_WCE) | 74 | #if 0 //defined(_WIN32) && !defined(_WIN32_WCE) |
56 | #define ALIGN __declspec(align(16)) | 75 | #define ALIGN __declspec(align(16)) |
@@ -71,7 +90,7 @@ extern struct codec_api* ci; | |||
71 | /* #define USE_DOUBLE_PRECISION */ | 90 | /* #define USE_DOUBLE_PRECISION */ |
72 | /* use fixed point reals */ | 91 | /* use fixed point reals */ |
73 | #define FIXED_POINT | 92 | #define FIXED_POINT |
74 | //#define BIG_IQ_TABLE | 93 | #define BIG_IQ_TABLE /* BIG_IQ_TABLE results in faster requantization */ |
75 | 94 | ||
76 | /* Use if target platform has address generators with autoincrement */ | 95 | /* Use if target platform has address generators with autoincrement */ |
77 | //#define PREFER_POINTERS | 96 | //#define PREFER_POINTERS |