1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Alexander Levin 2009-07-13 14:48:02 +00:00
parent f448fa4655
commit 23ea8a53a1

View file

@ -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),