summaryrefslogtreecommitdiff
path: root/apps/codecs/lib
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2011-05-26 21:22:29 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2011-05-26 21:22:29 +0000
commit0497adffcf18e700215ce47f86eca0307a60bffc (patch)
treee757bd83373786f61addfdd5f4000a0e2d447ab4 /apps/codecs/lib
parent79dd27de82f5620b3052eeed11cb874c3e82c94c (diff)
downloadrockbox-0497adffcf18e700215ce47f86eca0307a60bffc.tar.gz
rockbox-0497adffcf18e700215ce47f86eca0307a60bffc.zip
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
Diffstat (limited to 'apps/codecs/lib')
-rw-r--r--apps/codecs/lib/fixedpoint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/lib/fixedpoint.h b/apps/codecs/lib/fixedpoint.h
index b912cbe66b..1cbd1573bb 100644
--- a/apps/codecs/lib/fixedpoint.h
+++ b/apps/codecs/lib/fixedpoint.h
@@ -33,7 +33,7 @@
33 * where phase is a 32 bit unsigned integer with 0 representing 0 33 * where phase is a 32 bit unsigned integer with 0 representing 0
34 * and 0xFFFFFFFF representing 2*pi, and *cos is the address to 34 * and 0xFFFFFFFF representing 2*pi, and *cos is the address to
35 * a long signed integer. Value returned is a long signed integer 35 * a long signed integer. Value returned is a long signed integer
36 * from LONG_MIN to LONG_MAX, representing -1 to 1 respectively. 36 * from -0x80000000 to 0x7fffffff, representing -1 to 1 respectively.
37 * That is, value is a fixed point integer with 31 fractional bits. 37 * That is, value is a fixed point integer with 31 fractional bits.
38 * 38 *
39 * Take square root of a fixed point number: 39 * Take square root of a fixed point number: