audioresample: changed inner_product_single semantics
authorCarlos Rafael Giani <dv@pseudoterminal.org>
Mon, 15 Oct 2012 20:21:14 +0000 (22:21 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 25 Oct 2012 12:03:52 +0000 (14:03 +0200)
commit19073ab8c4898a7fb780e73748a5bfe20f79d477
treeb1f586bc19c373a875debff0f084b3554b126e6c
parentc41faa3d8ea549479d61472b034a8f26fabe355c
audioresample: changed inner_product_single semantics

This is an adaptation of patch #3 from Jyri Sarha
( http://lists.xiph.org/pipermail/speex-dev/2011-September/008240.html ),
but without the NEON optimizations (these come in a separate commit).
The idea is to replace SATURATE32(PSHR32(x, shift), a) operations with a
combined SATURATE32PSHR(x, shift, a) macro that can be optimized for
specific platforms (and also avoids rare rounding errors).

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
gst/audioresample/arch.h
gst/audioresample/fixed_generic.h
gst/audioresample/resample.c