diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-13 16:41:14 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-13 16:41:14 +0000 |
commit | a1145a1d040dd52b2b5d0e7fe965b6507475bbe2 (patch) | |
tree | 988f845d688974dd7db1950243ef09cc39ed443c /apps/codecs/libgme/opltables.h | |
parent | 724a2d2514578297a7fe21dc4c17a7b51a25758d (diff) | |
download | rockbox-a1145a1d040dd52b2b5d0e7fe965b6507475bbe2.tar.gz rockbox-a1145a1d040dd52b2b5d0e7fe965b6507475bbe2.zip |
Remove all IRAM attributes from libGME to be able to restart the IRAM optimization on a clean code base. As first step move the sample buffers to IRAM which results in a 1-5% speedup for all codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30284 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libgme/opltables.h')
-rw-r--r-- | apps/codecs/libgme/opltables.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/libgme/opltables.h b/apps/codecs/libgme/opltables.h index 1414f2264b..6ec10eaa6e 100644 --- a/apps/codecs/libgme/opltables.h +++ b/apps/codecs/libgme/opltables.h | |||
@@ -4,7 +4,7 @@ | |||
4 | /* Precalculated emu8950 tables for use in Rockbox, | 4 | /* Precalculated emu8950 tables for use in Rockbox, |
5 | Calculated for 44Khz sampling rate */ | 5 | Calculated for 44Khz sampling rate */ |
6 | 6 | ||
7 | static const short ar_adjust_coeff[] ICONST_ATTR = { | 7 | static const short ar_adjust_coeff[] = { |
8 | 255, 227, 210, 198, 189, 181, 175, 170, 165, 161, 157, | 8 | 255, 227, 210, 198, 189, 181, 175, 170, 165, 161, 157, |
9 | 153, 150, 147, 144, 141, 139, 136, 134, 132, 130, 128, | 9 | 153, 150, 147, 144, 141, 139, 136, 134, 132, 130, 128, |
10 | 126, 125, 123, 121, 120, 118, 117, 115, 114, 113, 112, | 10 | 126, 125, 123, 121, 120, 118, 117, 115, 114, 113, 112, |
@@ -54,7 +54,7 @@ static const short ar_adjust_coeff[] ICONST_ATTR = { | |||
54 | 0, 0, 0, 0, 0 | 54 | 0, 0, 0, 0, 0 |
55 | }; | 55 | }; |
56 | 56 | ||
57 | static const short db2lin_coeff[] ICONST_ATTR = { | 57 | static const short db2lin_coeff[] = { |
58 | 2047, 2003, 1960, 1918, 1877, 1837, 1798, 1759, 1722, 1685, 1649, | 58 | 2047, 2003, 1960, 1918, 1877, 1837, 1798, 1759, 1722, 1685, 1649, |
59 | 1614, 1579, 1546, 1513, 1480, 1449, 1418, 1387, 1358, 1329, 1300, | 59 | 1614, 1579, 1546, 1513, 1480, 1449, 1418, 1387, 1358, 1329, 1300, |
60 | 1273, 1245, 1219, 1193, 1167, 1142, 1118, 1094, 1071, 1048, 1025, | 60 | 1273, 1245, 1219, 1193, 1167, 1142, 1118, 1094, 1071, 1048, 1025, |
@@ -104,7 +104,7 @@ static const short db2lin_coeff[] ICONST_ATTR = { | |||
104 | 0, 0, 0, 0, 0, 0 | 104 | 0, 0, 0, 0, 0, 0 |
105 | }; | 105 | }; |
106 | 106 | ||
107 | static const short sin_coeff[] ICONST_ATTR = { | 107 | static const short sin_coeff[] = { |
108 | 511, 235, 203, 185, 171, 161, 152, 145, 139, 134, 129, | 108 | 511, 235, 203, 185, 171, 161, 152, 145, 139, 134, 129, |
109 | 124, 120, 117, 113, 110, 107, 104, 102, 99, 97, 95, | 109 | 124, 120, 117, 113, 110, 107, 104, 102, 99, 97, 95, |
110 | 92, 90, 88, 87, 85, 83, 81, 80, 78, 77, 75, | 110 | 92, 90, 88, 87, 85, 83, 81, 80, 78, 77, 75, |
@@ -131,7 +131,7 @@ static const short sin_coeff[] ICONST_ATTR = { | |||
131 | 0, 0, 0, | 131 | 0, 0, 0, |
132 | }; | 132 | }; |
133 | 133 | ||
134 | static const short pm0_coeff[] ICONST_ATTR = { | 134 | static const short pm0_coeff[] = { |
135 | 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, | 135 | 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, |
136 | 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, | 136 | 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, |
137 | 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, | 137 | 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, |
@@ -158,7 +158,7 @@ static const short pm0_coeff[] ICONST_ATTR = { | |||
158 | 255, 255, 255, | 158 | 255, 255, 255, |
159 | }; | 159 | }; |
160 | 160 | ||
161 | static const short pm1_coeff[] ICONST_ATTR = { | 161 | static const short pm1_coeff[] = { |
162 | 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, | 162 | 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, |
163 | 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 257, | 163 | 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 257, |
164 | 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, | 164 | 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, |
@@ -185,7 +185,7 @@ static const short pm1_coeff[] ICONST_ATTR = { | |||
185 | 255, 255, 255, | 185 | 255, 255, 255, |
186 | }; | 186 | }; |
187 | 187 | ||
188 | static const short am0_coeff[] ICONST_ATTR = { | 188 | static const short am0_coeff[] = { |
189 | 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, | 189 | 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, |
190 | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, | 190 | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
191 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | 191 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
@@ -212,7 +212,7 @@ static const short am0_coeff[] ICONST_ATTR = { | |||
212 | 2, 2, 2, | 212 | 2, 2, 2, |
213 | }; | 213 | }; |
214 | 214 | ||
215 | static const short am1_coeff[] ICONST_ATTR = { | 215 | static const short am1_coeff[] = { |
216 | 12, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, | 216 | 12, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, |
217 | 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 19, | 217 | 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 19, |
218 | 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, | 218 | 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, |