From af2e9cc6e9e2c2a5a673870874e554af734ab6b1 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 8 Nov 2007 15:30:47 +0000 Subject: SPC/Coldfire: Just use msac.w instead of neg.l/mac.w. It seems fine. Must've been cache aliasing. :-) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15532 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/spc/spc_dsp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/codecs/spc/spc_dsp.c b/apps/codecs/spc/spc_dsp.c index 6a8aaebc7f..8881788cf1 100644 --- a/apps/codecs/spc/spc_dsp.c +++ b/apps/codecs/spc/spc_dsp.c @@ -812,10 +812,8 @@ void DSP_run_( struct Spc_Dsp* this, long count, int32_t* out_buf ) "move.l 2(%[s], %[y1].l*2), %[y1] \r\n" /* %acc0 = f*y1 */ "mac.w %[f]l, %[y1]l, %%acc0 \r\n" - /* msac.w is 2% boostier so add negative */ - "neg.l %[f] \r\n" /* %acc0 -= f*y0 */ - "mac.w %[f]l, %[y1]u, %%acc0 \r\n" + "msac.w %[f]l, %[y1]u, %%acc0 \r\n" /* separate out y0 and sign extend */ "swap %[y1] \r\n" "movea.w %[y1], %[y0] \r\n" -- cgit v1.2.3