1
0
Fork 0
forked from len0rd/rockbox

We clear our accumulators after we're done with them on Coldfire. No need to clear them on init.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6609 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thom Johansen 2005-06-08 13:41:07 +00:00
parent 0a3f8e0924
commit 668205f427
2 changed files with 4 additions and 9 deletions

View file

@ -28,12 +28,7 @@
static inline void mcf5249_init_mac(void) {
int r;
asm volatile ("move.l #0x20, %%macsr;" /* frac, truncate, no saturation */
"movclr.l %%acc0, %[r];" /* clear accumulators */
"move.l %%acc0, %%acc1;"
"move.l %%acc0, %%acc2;"
"move.l %%acc0, %%acc3;"
: [r] "=r" (r));
asm volatile ("move.l #0x20, %%macsr;"); /* frac, truncate, no saturation */
}
static inline ogg_int32_t MULT32(ogg_int32_t x, ogg_int32_t y) {

View file

@ -66,9 +66,9 @@ decorr_stereo_pass_cont_mcf5249:
asl.l %d0, %d1
move.l %d1, %a3
move.l #0x20, %macsr | set fractional mode for MAC
move.l #0, %acc1 | acc1 = 0x00 0000 80 (for rounding)
move.l #0x800000, %accext01
moveq.l #0x20, %d6
move.l %d6, %macsr | set fractional mode for MAC
move.l #0x800000, %accext01 | acc1 = 0x00 0000 80 (for rounding)
move.l #1024<<17, %d6 | d6 & d7 are weight clipping limits
move.l #-1024<<17, %d7 | (only used by negative terms)