From bf2170bf7ecdff43a854b586be37343f0ef4958a Mon Sep 17 00:00:00 2001 From: alle Date: Mon, 13 Jul 2009 14:48:02 +0000 Subject: [PATCH] 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(-) diff --git a/apps/gui/pitchscreen.c b/apps/gui/pitchscreen.c index 204a1cd35..8215da2a9 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), -- 2.11.4.GIT