forked from len0rd/rockbox
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
This commit is contained in:
parent
a3ed6e9c7a
commit
e9edc8f82d
4 changed files with 222 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue