diff options
| author | Nils Wallménius <nils@rockbox.org> | 2012-10-16 17:52:53 +0200 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2012-10-16 17:52:53 +0200 |
| commit | c8e7dae362517489dc803a2ac3279aacefe0c3bc (patch) | |
| tree | 365f5f751fa98e5db94af0056f0541a6d54b1072 /lib/rbcodec/codecs | |
| parent | ac6ee9f8996cc452bb6f63f23739651f09d1efcc (diff) | |
| download | rockbox-c8e7dae362517489dc803a2ac3279aacefe0c3bc.zip rockbox-c8e7dae362517489dc803a2ac3279aacefe0c3bc.tar.gz rockbox-c8e7dae362517489dc803a2ac3279aacefe0c3bc.tar.bz2 rockbox-c8e7dae362517489dc803a2ac3279aacefe0c3bc.tar.xz | |
opus: put hot code in iram
Saves 1.1MHz decoding a 64kbps test file on h300 (cf) and
0.2MHz on c200 (pp)
Change-Id: If9ed03f2e3787ee497eababda4013fbb5d395946
Diffstat (limited to 'lib/rbcodec/codecs')
| -rw-r--r-- | lib/rbcodec/codecs/libopus/celt/kiss_fft.h | 2 | ||||
| -rw-r--r-- | lib/rbcodec/codecs/libopus/celt/mdct.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbcodec/codecs/libopus/celt/kiss_fft.h b/lib/rbcodec/codecs/libopus/celt/kiss_fft.h index 66332e3..c6bb4bf 100644 --- a/lib/rbcodec/codecs/libopus/celt/kiss_fft.h +++ b/lib/rbcodec/codecs/libopus/celt/kiss_fft.h @@ -128,7 +128,7 @@ kiss_fft_state *opus_fft_alloc(int nfft,void * mem,size_t * lenmem); f[k].r and f[k].i * */ void opus_fft(const kiss_fft_state *cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout); -void opus_ifft(const kiss_fft_state *cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout); +void opus_ifft(const kiss_fft_state *cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout) ICODE_ATTR; void opus_fft_free(const kiss_fft_state *cfg); diff --git a/lib/rbcodec/codecs/libopus/celt/mdct.h b/lib/rbcodec/codecs/libopus/celt/mdct.h index d721821..1abc1d1 100644 --- a/lib/rbcodec/codecs/libopus/celt/mdct.h +++ b/lib/rbcodec/codecs/libopus/celt/mdct.h @@ -65,6 +65,6 @@ void clt_mdct_forward(const mdct_lookup *l, kiss_fft_scalar *in, (scales implicitly by 1/2) */ void clt_mdct_backward(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scalar * OPUS_RESTRICT out, - const opus_val16 * OPUS_RESTRICT window, int overlap, int shift, int stride); + const opus_val16 * OPUS_RESTRICT window, int overlap, int shift, int stride) ICODE_ATTR; #endif |