diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/Tremor/asm_mcf5249.h | 7 | ||||
-rw-r--r-- | apps/codecs/libwavpack/coldfire.S | 6 |
2 files changed, 4 insertions, 9 deletions
diff --git a/apps/codecs/Tremor/asm_mcf5249.h b/apps/codecs/Tremor/asm_mcf5249.h index b930ce1f5f..4d7767c63e 100644 --- a/apps/codecs/Tremor/asm_mcf5249.h +++ b/apps/codecs/Tremor/asm_mcf5249.h | |||
@@ -28,12 +28,7 @@ | |||
28 | 28 | ||
29 | static inline void mcf5249_init_mac(void) { | 29 | static inline void mcf5249_init_mac(void) { |
30 | int r; | 30 | int r; |
31 | asm volatile ("move.l #0x20, %%macsr;" /* frac, truncate, no saturation */ | 31 | asm volatile ("move.l #0x20, %%macsr;"); /* frac, truncate, no saturation */ |
32 | "movclr.l %%acc0, %[r];" /* clear accumulators */ | ||
33 | "move.l %%acc0, %%acc1;" | ||
34 | "move.l %%acc0, %%acc2;" | ||
35 | "move.l %%acc0, %%acc3;" | ||
36 | : [r] "=r" (r)); | ||
37 | } | 32 | } |
38 | 33 | ||
39 | static inline ogg_int32_t MULT32(ogg_int32_t x, ogg_int32_t y) { | 34 | static inline ogg_int32_t MULT32(ogg_int32_t x, ogg_int32_t y) { |
diff --git a/apps/codecs/libwavpack/coldfire.S b/apps/codecs/libwavpack/coldfire.S index 9c7e098e88..e7bf7760e5 100644 --- a/apps/codecs/libwavpack/coldfire.S +++ b/apps/codecs/libwavpack/coldfire.S | |||
@@ -66,9 +66,9 @@ decorr_stereo_pass_cont_mcf5249: | |||
66 | asl.l %d0, %d1 | 66 | asl.l %d0, %d1 |
67 | move.l %d1, %a3 | 67 | move.l %d1, %a3 |
68 | 68 | ||
69 | move.l #0x20, %macsr | set fractional mode for MAC | 69 | moveq.l #0x20, %d6 |
70 | move.l #0, %acc1 | acc1 = 0x00 0000 80 (for rounding) | 70 | move.l %d6, %macsr | set fractional mode for MAC |
71 | move.l #0x800000, %accext01 | 71 | move.l #0x800000, %accext01 | acc1 = 0x00 0000 80 (for rounding) |
72 | 72 | ||
73 | move.l #1024<<17, %d6 | d6 & d7 are weight clipping limits | 73 | move.l #1024<<17, %d6 | d6 & d7 are weight clipping limits |
74 | move.l #-1024<<17, %d7 | (only used by negative terms) | 74 | move.l #-1024<<17, %d7 | (only used by negative terms) |