From 23ea8a53a10977b53e926665f44d0d3810552575 Mon Sep 17 00:00:00 2001 From: Alexander Levin Date: Mon, 13 Jul 2009 14:48:02 +0000 Subject: 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 --- apps/gui/pitchscreen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/gui/pitchscreen.c b/apps/gui/pitchscreen.c index 204a1cd35f..8215da2a97 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), -- cgit v1.2.3