OSDN Git Service

sbc: 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>
Mon, 30 Jul 2012 02:48:28 +0000 (19:48 -0700)
commitb369ea3525442e56a3e2049ba4541e6b7d100e20
tree2707749679ca9e8f5819d84af74e7740ec668c60
parentea356ab95d6c48d4be6834faee0f50ee1e9571cb
sbc: 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