OSDN Git Service

SBC encoder scale factors calculation optimized with __builtin_clz
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>
Thu, 29 Jan 2009 00:17:36 +0000 (02:17 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 29 Jan 2009 07:25:50 +0000 (08:25 +0100)
commita563c8ed5a5d5004f4270dd8836f4257c1da2fe8
tree520ed16c174f1cab6fc0749b267e5044b9a74e7d
parent85ad02b73626ee5caca6adb6e2890a7a588ecb38
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.
sbc/sbc.c
sbc/sbc_primitives.c
sbc/sbc_primitives.h