diff options
author | Thom Johansen <thomj@rockbox.org> | 2007-02-05 01:01:15 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2007-02-05 01:01:15 +0000 |
commit | 5f48e1590f16049aaaf916ad72d6016a4e7ffa5c (patch) | |
tree | 4438397a1a44cf301f0f4675388f92ee1e8ddb38 /firmware/target | |
parent | 7170a00daad917993d3fed460f1122f543d2b0ea (diff) | |
download | rockbox-5f48e1590f16049aaaf916ad72d6016a4e7ffa5c.tar.gz rockbox-5f48e1590f16049aaaf916ad72d6016a4e7ffa5c.zip |
Optimise EQ coef calculation routines for both speed and size. Move now unneeded fsqrt function to plugin fixed point library in case it'll be needed. Move all fixed point helper macros to dsp.h. Added FRACMUL_SHL macro to facilitate high-precision shifting of 64 bit multiplies and remove rounding from macsr in main thread to make this work as intended.
Tested quite thorougly, but as always, be careful with your ears.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12203 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/coldfire/system-coldfire.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/coldfire/system-coldfire.c b/firmware/target/coldfire/system-coldfire.c index ff81d1cf39..54157214d9 100644 --- a/firmware/target/coldfire/system-coldfire.c +++ b/firmware/target/coldfire/system-coldfire.c @@ -240,10 +240,10 @@ void system_init(void) "movclr.l %%acc2, %%d0\n\t" "movclr.l %%acc3, %%d0\n\t" : : : "d0"); - /* Set EMAC unit to saturating and rounding fractional mode, since that's + /* Set EMAC unit to fractional mode with saturation, since that's what'll be the most useful for most things which the main thread will do. */ - coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE | EMAC_ROUND); + coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE); /* Set INTBASE and SPURVEC */ INTBASE = 64; |