diff options
| author | Dave Chapman <dave@dchapman.com> | 2005-02-19 22:11:29 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2005-02-19 22:11:29 +0000 |
| commit | e9edc8f82df2c182c2453720a79ad37c55e6ef4b (patch) | |
| tree | 4f3eea003ae0124feb2afb51d3a32bce56108f6f /apps/codecs/libFLAC/stream_decoder.c | |
| parent | a3ed6e9c7a90cd5dcffed397c894e480672d667c (diff) | |
| download | rockbox-e9edc8f82df2c182c2453720a79ad37c55e6ef4b.zip rockbox-e9edc8f82df2c182c2453720a79ad37c55e6ef4b.tar.gz rockbox-e9edc8f82df2c182c2453720a79ad37c55e6ef4b.tar.bz2 rockbox-e9edc8f82df2c182c2453720a79ad37c55e6ef4b.tar.xz | |
Thom Johansen's first EMAC optimisation for the Coldfire - about a 3%-4% speedup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6024 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libFLAC/stream_decoder.c')
| -rw-r--r-- | apps/codecs/libFLAC/stream_decoder.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/codecs/libFLAC/stream_decoder.c b/apps/codecs/libFLAC/stream_decoder.c index ec43314..eb78d18 100644 --- a/apps/codecs/libFLAC/stream_decoder.c +++ b/apps/codecs/libFLAC/stream_decoder.c @@ -43,6 +43,10 @@ #include "private/lpc.h" #include "private/memory.h" +#if CONFIG_CPU==MCF5249 +#include <private/coldfire.h> +#endif + #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ -298,7 +302,11 @@ FLAC_API FLAC__StreamDecoderState FLAC__stream_decoder_init(FLAC__StreamDecoder decoder->private_->local_lpc_restore_signal = FLAC__lpc_restore_signal; decoder->private_->local_lpc_restore_signal_64bit = FLAC__lpc_restore_signal_wide; decoder->private_->local_lpc_restore_signal_16bit = FLAC__lpc_restore_signal; +#if CONFIG_CPU==MCF5249 && !SIMULATOR + decoder->private_->local_lpc_restore_signal_16bit_order8 = FLAC__lpc_restore_signal_order8_mac; +#else decoder->private_->local_lpc_restore_signal_16bit_order8 = FLAC__lpc_restore_signal; +#endif /* now override with asm where appropriate */ #ifndef FLAC__NO_ASM if(decoder->private_->cpuinfo.use_asm) { |