From 6cff0e72de7bafa167388a32da811855b8b4b6d6 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sun, 21 Nov 2010 17:58:42 +0000 Subject: 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 --- apps/codecs/demac/libdemac/decoder.c | 10 +++++----- 1 file 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, -- cgit v1.2.3