From 13167d2389ba39d8f6e261c63538d8dbe01b3541 Mon Sep 17 00:00:00 2001 From: Mohamed Tarek Date: Thu, 5 Aug 2010 18:53:42 +0000 Subject: [PATCH] =?UTF-8?q?Remove=20the=20comment=20about=20Coldfire=20asm?= =?UTF-8?q?.=20The=20current=20code=20(using=20fixmul16=20macros)=20is=20f?= =?UTF-8?q?ast=20enough;=20even=20faster=20than=20an=20equivalent=20CF=20a?= =?UTF-8?q?sm=20version,=20as=20pointed=20out=20by=20Nils=20Wallm=C3=A9niu?= =?UTF-8?q?s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27724 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libwmapro/wmapro_math.h | 34 ----------------------------- 1 file changed, 34 deletions(-) diff --git a/apps/codecs/libwmapro/wmapro_math.h b/apps/codecs/libwmapro/wmapro_math.h index 54c5f45914..261a7bd89d 100644 --- a/apps/codecs/libwmapro/wmapro_math.h +++ b/apps/codecs/libwmapro/wmapro_math.h @@ -223,40 +223,6 @@ static inline void vector_fixmul_window(int32_t *dst, const int32_t *src0, : [dst]"+r"(dst), [src]"+r"(src) \ : [mul]"r"(mul) \ : "r0", "r1", "r2", "r3", "r4", "r5", "memory"); -/* Disable ColdFire version until a correct version is written -#elif defined (CPU_COLDFIRE) - #define VECT_MUL_SCALAR_KERNEL(dst, src, mul) \ - int32_t tmp; \ - asm volatile ( \ - "movem.l (%[src]), %%d0-%%d3 \n\t" \ - "mac.l %[mul], %%d0, %%acc0 \n\t" \ - "mac.l %[mul], %%d1, %%acc1 \n\t" \ - "mac.l %[mul], %%d2, %%acc2 \n\t" \ - "mac.l %[mul], %%d3, %%acc3 \n\t" \ - "move.l %%accext01, %[tmp] \n\t" \ - "movclr.l %%acc0, %%d0 \n\t" \ - "movclr.l %%acc1, %%d1 \n\t" \ - "lsl.l #7, %%d0 \n\t" \ - "move.b %[tmp], %%d0 \n\t" \ - "swap %[tmp] \n\t" \ - "lsl.l #7, %%d1 \n\t" \ - "move.b %[tmp], %%d1 \n\t" \ - "move.l %%accext23, %[tmp] \n\t" \ - "movclr.l %%acc2, %%d2 \n\t" \ - "movclr.l %%acc3, %%d3 \n\t" \ - "lsl.l #7, %%d2 \n\t" \ - "move.b %[tmp], %%d2 \n\t" \ - "swap %[tmp] \n\t" \ - "lsl.l #7, %%d3 \n\t" \ - "move.b %[tmp], %%d3 \n\t" \ - "movem.l %%d0-%%d3, (%[dst]) \n\t" \ - "lea.l (4*4, %[src]), %[src]\n\t" \ - "lea.l (4*4, %[dst]), %[dst]\n\t" \ - : [dst] "+a" (dst), [src] "+a" (src),\ - [tmp] "=d" (tmp) \ - : [mul] "r" (mul) \ - : "d0", "d1", "d2", "d3", "memory", "cc"); -*/ #else #define VECT_MUL_SCALAR_KERNEL(dst, src, mul) \ dst[i ] = fixmul16(src[i ], mul); \