From cc7fac27b55c4358b2c5d15ab9ee910a6efef314 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Thu, 5 Aug 2010 21:43:49 +0000 Subject: 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 --- apps/codecs/libwmapro/wmapro_math.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') 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, -- cgit v1.2.3