diff options
| author | Alexander Levin <al.le@rockbox.org> | 2009-07-13 14:48:02 +0000 |
|---|---|---|
| committer | Alexander Levin <al.le@rockbox.org> | 2009-07-13 14:48:02 +0000 |
| commit | 23ea8a53a10977b53e926665f44d0d3810552575 (patch) | |
| tree | a847df0987b5356e3b3cecf3363da40ca4ae1613 | |
| parent | f448fa4655256110f58acfe99b29a467baf13966 (diff) | |
| download | rockbox-23ea8a53a10977b53e926665f44d0d3810552575.zip rockbox-23ea8a53a10977b53e926665f44d0d3810552575.tar.gz rockbox-23ea8a53a10977b53e926665f44d0d3810552575.tar.bz2 rockbox-23ea8a53a10977b53e926665f44d0d3810552575.tar.xz | |
Slightly reduce the bin size by using ushort instead of int in arrays
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21840 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/gui/pitchscreen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/pitchscreen.c b/apps/gui/pitchscreen.c index 204a1cd..8215da2 100644 --- a/apps/gui/pitchscreen.c +++ b/apps/gui/pitchscreen.c @@ -84,9 +84,9 @@ enum the last digit). */ #define TO_INT_WITH_PRECISION(x) \ - ( (int)(((x) * PITCH_SPEED_PRECISION * 10 + 5) / 10) ) + ( (unsigned short)(((x) * PITCH_SPEED_PRECISION * 10 + 5) / 10) ) -static const int semitone_table[] = +static const unsigned short semitone_table[] = { TO_INT_WITH_PRECISION(50.00000000), /* Octave lower */ TO_INT_WITH_PRECISION(52.97315472), @@ -127,7 +127,7 @@ static const int semitone_table[] = x(n) = 100 * 2^(n * 20/1200) */ -static const int cent_interp[] = +static const unsigned short cent_interp[] = { TO_INT_WITH_PRECISION(100.0000000), TO_INT_WITH_PRECISION(101.1619440), |