summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-08-05 21:43:49 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-08-05 21:43:49 +0000
commitcc7fac27b55c4358b2c5d15ab9ee910a6efef314 (patch)
tree0d555a9d5541b897b9950bce50b0e8152aa737f2
parentc5025c7c78b416f42f086138161d3126ad9482b9 (diff)
Minor of libwmapro on ARM. Swap operands for fixmul31, is 1% faster.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27727 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/libwmapro/wmapro_math.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libwmapro/wmapro_math.h b/apps/codecs/libwmapro/wmapro_math.h
index 261a7bd89d..a34a5a8d5a 100644
--- a/apps/codecs/libwmapro/wmapro_math.h
+++ b/apps/codecs/libwmapro/wmapro_math.h
@@ -182,8 +182,8 @@
: "cc", "memory");
#else
#define VECT_MUL_WIN_KERNEL(i, j, s0, s1, wi, wj) \
- dst[i] = fixmul31(s0, wj) - fixmul31(s1, wi); \
- dst[j] = fixmul31(s0, wi) + fixmul31(s1, wj);
+ dst[i] = fixmul31(wj, s0) - fixmul31(wi, s1); \
+ dst[j] = fixmul31(wi, s0) + fixmul31(wj, s1);
#endif /* CPU_COLDFIRE */
static inline void vector_fixmul_window(int32_t *dst, const int32_t *src0,