summaryrefslogtreecommitdiffstats
path: root/apps/codecs/libmusepack/synth_filter.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-11-12 07:04:07 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-11-12 07:04:07 +0000
commit3f4e0cf25b525f8acec950547ff7570db5c134a5 (patch)
tree43d153e024754e69bbe30af2aaf0bf402301bebe /apps/codecs/libmusepack/synth_filter.c
parent755523559104713340243da83e08871ec6601865 (diff)
downloadrockbox-3f4e0cf25b525f8acec950547ff7570db5c134a5.tar.gz
rockbox-3f4e0cf25b525f8acec950547ff7570db5c134a5.zip
Set alignment for major data arrays in the mpc codec. This avoids performance regressions on S5L870x CPUs when changing code and allows further improvements.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28561 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmusepack/synth_filter.c')
-rw-r--r--apps/codecs/libmusepack/synth_filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libmusepack/synth_filter.c b/apps/codecs/libmusepack/synth_filter.c
index 94c57eb213..e173702a77 100644
--- a/apps/codecs/libmusepack/synth_filter.c
+++ b/apps/codecs/libmusepack/synth_filter.c
@@ -66,9 +66,9 @@
// by the correct amount to have proper scaled output
#define D(value) MAKE_MPC_SAMPLE((double)value*(double)(0x1000))
#endif
-
+
// Di_opt coefficients are +/- 2^17 (pre-shifted by <<16)
-static const MPC_SAMPLE_FORMAT Di_opt [512] ICONST_ATTR = {
+static const MPC_SAMPLE_FORMAT Di_opt [512] ICONST_ATTR __attribute__((aligned(16))) = {
/* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 */
/* 0 */ D( 0), -D( 29), D(213), -D( 459), D(2037), -D(5153), D( 6574), -D(37489), D(75038), D(37489), D(6574), D(5153), D(2037), D(459), D(213), D(29),
/* 1 */ -D( 1), -D( 31), D(218), -D( 519), D(2000), -D(5517), D( 5959), -D(39336), D(74992), D(35640), D(7134), D(4788), D(2063), D(401), D(208), D(26),