1
0
Fork 0
forked from len0rd/rockbox

Commit FS#12130 - Fix ADX decoding on 64-bit systems by Sean Bartell. Fixes an incorrect assumption in the ADX decoder that sizeof(int) == 32 when performing fixed point math. Update comments in the fixed point library to correct this.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29927 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Giacomelli 2011-05-26 21:22:29 +00:00
parent 79dd27de82
commit 0497adffcf
3 changed files with 3 additions and 3 deletions

View file

@ -129,7 +129,7 @@ enum codec_status codec_run(void)
fp_sincos((unsigned long)phasemultiple,&z);
a = (M_SQRT2*big28)-(z*big28/LONG_MAX);
a = (M_SQRT2*big28) - (z >> 3);
/**
* In the long passed to fsqrt there are only 4 nonfractional bits,