summaryrefslogtreecommitdiff
path: root/apps/codecs/demac/libdemac
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-11-21 17:58:42 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-11-21 17:58:42 +0000
commit6cff0e72de7bafa167388a32da811855b8b4b6d6 (patch)
tree70bd343647a78d260c2b97551bc2ac0a19a400bc /apps/codecs/demac/libdemac
parentfeb74ad5175730fbe4ef114e6b461eb875dfe2d4 (diff)
Use MEM_ALIGN_ATTR in libdemac instead of fixed alignment. Speeds up arm11 by ~6%.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28632 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/demac/libdemac')
-rw-r--r--apps/codecs/demac/libdemac/decoder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/codecs/demac/libdemac/decoder.c b/apps/codecs/demac/libdemac/decoder.c
index 6566ba26a8..b0339a75d9 100644
--- a/apps/codecs/demac/libdemac/decoder.c
+++ b/apps/codecs/demac/libdemac/decoder.c
@@ -35,20 +35,20 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
#ifdef FILTER256_IRAM
static filter_int filterbuf32[(32*3 + FILTER_HISTORY_SIZE) * 2]
- IBSS_ATTR_DEMAC __attribute__((aligned(16)));
+ IBSS_ATTR_DEMAC MEM_ALIGN_ATTR;
/* 2432 or 4864 bytes */
static filter_int filterbuf256[(256*3 + FILTER_HISTORY_SIZE) * 2]
- IBSS_ATTR_DEMAC __attribute__((aligned(16)));
+ IBSS_ATTR_DEMAC MEM_ALIGN_ATTR;
/* 5120 or 10240 bytes */
#define FILTERBUF64 filterbuf256
#define FILTERBUF32 filterbuf32
#define FILTERBUF16 filterbuf32
#else
static filter_int filterbuf64[(64*3 + FILTER_HISTORY_SIZE) * 2]
- IBSS_ATTR_DEMAC __attribute__((aligned(16)));
+ IBSS_ATTR_DEMAC MEM_ALIGN_ATTR;
/* 2432 or 4864 bytes */
static filter_int filterbuf256[(256*3 + FILTER_HISTORY_SIZE) * 2]
- __attribute__((aligned(16))); /* 5120 or 10240 bytes */
+ MEM_ALIGN_ATTR; /* 5120 or 10240 bytes */
#define FILTERBUF64 filterbuf64
#define FILTERBUF32 filterbuf64
#define FILTERBUF16 filterbuf64
@@ -57,7 +57,7 @@ static filter_int filterbuf256[(256*3 + FILTER_HISTORY_SIZE) * 2]
/* This is only needed for "insane" files, and no current Rockbox targets
can hope to decode them in realtime, except the Gigabeat S (at 528MHz). */
static filter_int filterbuf1280[(1280*3 + FILTER_HISTORY_SIZE) * 2]
- IBSS_ATTR_DEMAC_INSANEBUF __attribute__((aligned(16)));
+ IBSS_ATTR_DEMAC_INSANEBUF MEM_ALIGN_ATTR;
/* 17408 or 34816 bytes */
void init_frame_decoder(struct ape_ctx_t* ape_ctx,