summaryrefslogtreecommitdiff
path: root/apps/dsp.c
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2008-04-08 20:02:56 +0000
committerThom Johansen <thomj@rockbox.org>2008-04-08 20:02:56 +0000
commit66427c3e476d9cbd93375499abaf818ee73df581 (patch)
treeed08a00c95ea7dd8c01e8319290bca04c58fe752 /apps/dsp.c
parent43def523e4d103bcb10c32125317db7ab2c480b9 (diff)
downloadrockbox-66427c3e476d9cbd93375499abaf818ee73df581.zip
rockbox-66427c3e476d9cbd93375499abaf818ee73df581.tar.gz
rockbox-66427c3e476d9cbd93375499abaf818ee73df581.tar.bz2
rockbox-66427c3e476d9cbd93375499abaf818ee73df581.tar.xz
Remove ACC_INIT, ACC and GET_ACC macros. These were quite Coldfire-centric macros which really aren't needed since all performance sensitive target DSP code should be assembler anyway.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17037 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dsp.c')
-rw-r--r--apps/dsp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/dsp.c b/apps/dsp.c
index a259ea4..faa08ed 100644
--- a/apps/dsp.c
+++ b/apps/dsp.c
@@ -714,19 +714,19 @@ static void apply_crossfeed(int count, int32_t *buf[])
right = buf[1][i];
/* Filter delayed sample from left speaker */
- ACC_INIT(acc, *di, coefs[0]);
- ACC(acc, hist_l[0], coefs[1]);
- ACC(acc, hist_l[1], coefs[2]);
+ acc = FRACMUL(*di, coefs[0]);
+ acc += FRACMUL(hist_l[0], coefs[1]);
+ acc += FRACMUL(hist_l[1], coefs[2]);
/* Save filter history for left speaker */
- hist_l[1] = GET_ACC(acc);
+ hist_l[1] = acc;
hist_l[0] = *di;
*di++ = left;
/* Filter delayed sample from right speaker */
- ACC_INIT(acc, *di, coefs[0]);
- ACC(acc, hist_r[0], coefs[1]);
- ACC(acc, hist_r[1], coefs[2]);
+ acc = FRACMUL(*di, coefs[0]);
+ acc += FRACMUL(hist_r[0], coefs[1]);
+ acc += FRACMUL(hist_r[1], coefs[2]);
/* Save filter history for right speaker */
- hist_r[1] = GET_ACC(acc);
+ hist_r[1] = acc;
hist_r[0] = *di;
*di++ = right;
/* Now add the attenuated direct sound and write to outputs */