summaryrefslogtreecommitdiff
path: root/apps/codecs/libFLAC/stream_decoder.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-02-19 22:11:29 +0000
committerDave Chapman <dave@dchapman.com>2005-02-19 22:11:29 +0000
commite9edc8f82df2c182c2453720a79ad37c55e6ef4b (patch)
tree4f3eea003ae0124feb2afb51d3a32bce56108f6f /apps/codecs/libFLAC/stream_decoder.c
parenta3ed6e9c7a90cd5dcffed397c894e480672d667c (diff)
downloadrockbox-e9edc8f82df2c182c2453720a79ad37c55e6ef4b.tar.gz
rockbox-e9edc8f82df2c182c2453720a79ad37c55e6ef4b.zip
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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/codecs/libFLAC/stream_decoder.c b/apps/codecs/libFLAC/stream_decoder.c
index ec43314fe9..eb78d18be0 100644
--- a/apps/codecs/libFLAC/stream_decoder.c
+++ b/apps/codecs/libFLAC/stream_decoder.c
@@ -43,6 +43,10 @@
43#include "private/lpc.h" 43#include "private/lpc.h"
44#include "private/memory.h" 44#include "private/memory.h"
45 45
46#if CONFIG_CPU==MCF5249
47#include <private/coldfire.h>
48#endif
49
46#ifdef HAVE_CONFIG_H 50#ifdef HAVE_CONFIG_H
47#include <config.h> 51#include <config.h>
48#endif 52#endif
@@ -298,7 +302,11 @@ FLAC_API FLAC__StreamDecoderState FLAC__stream_decoder_init(FLAC__StreamDecoder
298 decoder->private_->local_lpc_restore_signal = FLAC__lpc_restore_signal; 302 decoder->private_->local_lpc_restore_signal = FLAC__lpc_restore_signal;
299 decoder->private_->local_lpc_restore_signal_64bit = FLAC__lpc_restore_signal_wide; 303 decoder->private_->local_lpc_restore_signal_64bit = FLAC__lpc_restore_signal_wide;
300 decoder->private_->local_lpc_restore_signal_16bit = FLAC__lpc_restore_signal; 304 decoder->private_->local_lpc_restore_signal_16bit = FLAC__lpc_restore_signal;
305#if CONFIG_CPU==MCF5249 && !SIMULATOR
306 decoder->private_->local_lpc_restore_signal_16bit_order8 = FLAC__lpc_restore_signal_order8_mac;
307#else
301 decoder->private_->local_lpc_restore_signal_16bit_order8 = FLAC__lpc_restore_signal; 308 decoder->private_->local_lpc_restore_signal_16bit_order8 = FLAC__lpc_restore_signal;
309#endif
302 /* now override with asm where appropriate */ 310 /* now override with asm where appropriate */
303#ifndef FLAC__NO_ASM 311#ifndef FLAC__NO_ASM
304 if(decoder->private_->cpuinfo.use_asm) { 312 if(decoder->private_->cpuinfo.use_asm) {