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 | |
parent | ac6ee9f8996cc452bb6f63f23739651f09d1efcc (diff) | |
download | rockbox-c8e7dae362517489dc803a2ac3279aacefe0c3bc.tar.gz rockbox-c8e7dae362517489dc803a2ac3279aacefe0c3bc.zip |
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
-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 66332e3bb9..c6bb4bfd45 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); | |||
128 | f[k].r and f[k].i | 128 | f[k].r and f[k].i |
129 | * */ | 129 | * */ |
130 | void opus_fft(const kiss_fft_state *cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout); | 130 | void opus_fft(const kiss_fft_state *cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout); |
131 | void opus_ifft(const kiss_fft_state *cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout); | 131 | void opus_ifft(const kiss_fft_state *cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout) ICODE_ATTR; |
132 | 132 | ||
133 | void opus_fft_free(const kiss_fft_state *cfg); | 133 | void opus_fft_free(const kiss_fft_state *cfg); |
134 | 134 | ||
diff --git a/lib/rbcodec/codecs/libopus/celt/mdct.h b/lib/rbcodec/codecs/libopus/celt/mdct.h index d72182138a..1abc1d17f7 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, | |||
65 | (scales implicitly by 1/2) */ | 65 | (scales implicitly by 1/2) */ |
66 | void clt_mdct_backward(const mdct_lookup *l, kiss_fft_scalar *in, | 66 | void clt_mdct_backward(const mdct_lookup *l, kiss_fft_scalar *in, |
67 | kiss_fft_scalar * OPUS_RESTRICT out, | 67 | kiss_fft_scalar * OPUS_RESTRICT out, |
68 | const opus_val16 * OPUS_RESTRICT window, int overlap, int shift, int stride); | 68 | const opus_val16 * OPUS_RESTRICT window, int overlap, int shift, int stride) ICODE_ATTR; |
69 | 69 | ||
70 | #endif | 70 | #endif |