summaryrefslogtreecommitdiffstats
path: root/common/textfile.c
diff options
context:
space:
mode:
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>2009-01-29 02:17:36 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-01-29 08:25:50 +0100
commita563c8ed5a5d5004f4270dd8836f4257c1da2fe8 (patch)
tree520ed16c174f1cab6fc0749b267e5044b9a74e7d /common/textfile.c
parent85ad02b73626ee5caca6adb6e2890a7a588ecb38 (diff)
SBC encoder scale factors calculation optimized with __builtin_clz
Count leading zeros operation is often implemented using a special instruction for it on various architectures (at least this is true for ARM and x86). Using __builtin_clz gcc intrinsic allows to eliminate innermost loop in scale factors calculation and improve performance. Also scale factors calculation can be optimized even more using SIMD instructions.
Diffstat (limited to 'common/textfile.c')
0 files changed, 0 insertions, 0 deletions