summaryrefslogtreecommitdiffstats
path: root/sbc/sbcenc.c
diff options
context:
space:
mode:
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>2009-01-04 03:11:12 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-01-06 03:39:27 +0100
commit365f92ed452f021d4f372220d1e8ea5076dda81a (patch)
tree98109b9756dd60dc6e64a42030652d6eda83e0ed /sbc/sbcenc.c
parentfb333f1c88df9c50529a390297565a6627bcf7ad (diff)
Use of constant shift in SBC quantization code to make it faster
The result of 32x32->64 unsigned long multiplication is returned in two registers (high and low 32-bit parts) for many 32-bit architectures. For these architectures constant right shift by 32 bits is optimized out by the compiler to just taking the high 32-bit part. Also some data needed at the quantization stage is precalculated beforehand to improve performance.
Diffstat (limited to 'sbc/sbcenc.c')
0 files changed, 0 insertions, 0 deletions