mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-17 09:02:38 -05:00
Using icode attribute for S5L870x is faster on some codecs. Speed up for mpc is ~3%, for aac ~1%.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28453 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
48bb3d00db
commit
560d89130f
3 changed files with 6 additions and 6 deletions
|
|
@ -51,13 +51,13 @@ extern struct codec_api* ci;
|
||||||
#define LOGF(...)
|
#define LOGF(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (CONFIG_CPU == MCF5250) || defined(CPU_S5L870X)
|
#if (CONFIG_CPU == MCF5250)
|
||||||
/* Enough IRAM but performance suffers with ICODE_ATTR. */
|
/* Enough IRAM but performance suffers with ICODE_ATTR. */
|
||||||
#define IBSS_ATTR_FAAD_LARGE_IRAM IBSS_ATTR
|
#define IBSS_ATTR_FAAD_LARGE_IRAM IBSS_ATTR
|
||||||
#define ICODE_ATTR_FAAD_LARGE_IRAM
|
#define ICODE_ATTR_FAAD_LARGE_IRAM
|
||||||
#define ICONST_ATTR_FAAD_LARGE_IRAM ICONST_ATTR
|
#define ICONST_ATTR_FAAD_LARGE_IRAM ICONST_ATTR
|
||||||
|
|
||||||
#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
|
#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X)
|
||||||
/* Enough IRAM to move additional data and code to it. */
|
/* Enough IRAM to move additional data and code to it. */
|
||||||
#define IBSS_ATTR_FAAD_LARGE_IRAM IBSS_ATTR
|
#define IBSS_ATTR_FAAD_LARGE_IRAM IBSS_ATTR
|
||||||
#define ICODE_ATTR_FAAD_LARGE_IRAM ICODE_ATTR
|
#define ICODE_ATTR_FAAD_LARGE_IRAM ICODE_ATTR
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (CONFIG_CPU == MCF5250) || defined(CPU_S5L870X)
|
#if (CONFIG_CPU == MCF5250)
|
||||||
/* Enough IRAM but performance suffers with ICODE_ATTR. */
|
/* Enough IRAM but performance suffers with ICODE_ATTR. */
|
||||||
#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR
|
#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR
|
||||||
#define ICODE_ATTR_MPC_LARGE_IRAM
|
#define ICODE_ATTR_MPC_LARGE_IRAM
|
||||||
|
|
@ -55,7 +55,7 @@ extern "C" {
|
||||||
/* Keep the data arrays of bitsreadr.c in IRAM. */
|
/* Keep the data arrays of bitsreadr.c in IRAM. */
|
||||||
#define ICONST_ATTR_MPC_BITSREADER ICONST_ATTR
|
#define ICONST_ATTR_MPC_BITSREADER ICONST_ATTR
|
||||||
|
|
||||||
#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
|
#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X)
|
||||||
/* Enough IRAM to move additional data and code to it. */
|
/* Enough IRAM to move additional data and code to it. */
|
||||||
#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR
|
#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR
|
||||||
#define ICODE_ATTR_MPC_LARGE_IRAM ICODE_ATTR
|
#define ICODE_ATTR_MPC_LARGE_IRAM ICODE_ATTR
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,14 @@
|
||||||
#include "wma.h"
|
#include "wma.h"
|
||||||
#include "../libasf/asf.h"
|
#include "../libasf/asf.h"
|
||||||
|
|
||||||
#if (CONFIG_CPU == MCF5250) || defined(CPU_S5L870X)
|
#if (CONFIG_CPU == MCF5250)
|
||||||
/* Enough IRAM but performance suffers with ICODE_ATTR. */
|
/* Enough IRAM but performance suffers with ICODE_ATTR. */
|
||||||
#define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR
|
#define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR
|
||||||
#define ICODE_ATTR_WMAPRO_LARGE_IRAM
|
#define ICODE_ATTR_WMAPRO_LARGE_IRAM
|
||||||
#define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR
|
#define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR
|
||||||
#define ICONST_ATTR_WMAPRO_WIN_VS_TMP
|
#define ICONST_ATTR_WMAPRO_WIN_VS_TMP
|
||||||
|
|
||||||
#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
|
#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X)
|
||||||
/* Enough IRAM to move additional data and code to it. */
|
/* Enough IRAM to move additional data and code to it. */
|
||||||
#define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR
|
#define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR
|
||||||
#define ICODE_ATTR_WMAPRO_LARGE_IRAM ICODE_ATTR
|
#define ICODE_ATTR_WMAPRO_LARGE_IRAM ICODE_ATTR
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue