summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-10-25 18:45:28 +0000
committerJens Arnold <amiconn@rockbox.org>2007-10-25 18:45:28 +0000
commit3ea3caf34165ddc8114ecf3cd39ed0016192b1d7 (patch)
tree8d2c4a597ced7fc8b06d50cf132d28f0ae2a3ebd /apps/codecs
parent347cd866b146d115e3679d53811c4f309190e683 (diff)
downloadrockbox-3ea3caf34165ddc8114ecf3cd39ed0016192b1d7.zip
rockbox-3ea3caf34165ddc8114ecf3cd39ed0016192b1d7.tar.gz
rockbox-3ea3caf34165ddc8114ecf3cd39ed0016192b1d7.tar.bz2
rockbox-3ea3caf34165ddc8114ecf3cd39ed0016192b1d7.tar.xz
* Flip argument order for scalarproduct() so that the first argument is always 32 bit aligned, like it is already the case for vector_add() and vector_sub(), for upcoming optimisations. * Un-inline the apply_filter functions for better cache utilisation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15301 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/demac/libdemac/filter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/demac/libdemac/filter.c b/apps/codecs/demac/libdemac/filter.c
index ac12959..e85e42f 100644
--- a/apps/codecs/demac/libdemac/filter.c
+++ b/apps/codecs/demac/libdemac/filter.c
@@ -84,7 +84,7 @@ struct filter_t {
/* Apply the filter with state f to count entries in data[] */
-static inline void do_apply_filter_3980(struct filter_t* f, int32_t* data, int count)
+static void do_apply_filter_3980(struct filter_t* f, int32_t* data, int count)
{
int res;
int absres;
@@ -95,7 +95,7 @@ static inline void do_apply_filter_3980(struct filter_t* f, int32_t* data, int c
while(count--)
{
- res = FP_TO_INT(scalarproduct(f->delay - ORDER, f->coeffs));
+ res = FP_TO_INT(scalarproduct(f->coeffs, f->delay - ORDER));
if (*data < 0)
vector_add(f->coeffs, f->adaptcoeffs - ORDER);
@@ -141,7 +141,7 @@ static inline void do_apply_filter_3980(struct filter_t* f, int32_t* data, int c
}
}
-static inline void do_apply_filter_3970(struct filter_t* f, int32_t* data, int count)
+static void do_apply_filter_3970(struct filter_t* f, int32_t* data, int count)
{
int res;
@@ -151,7 +151,7 @@ static inline void do_apply_filter_3970(struct filter_t* f, int32_t* data, int c
while(count--)
{
- res = FP_TO_INT(scalarproduct(f->delay - ORDER, f->coeffs));
+ res = FP_TO_INT(scalarproduct(f->coeffs, f->delay - ORDER));
if (*data < 0)
vector_add(f->coeffs, f->adaptcoeffs - ORDER);