ref: ba238d8793672a4fa2b5f4fd4487e55a239a28b4
parent: 320347473215dbc128e3aa6fde3749d40e409f32
author: Jean-Marc Valin <[email protected]>
date: Sat Mar 22 13:53:12 EDT 2008
more use of restrict
--- a/libcelt/pitch.c
+++ b/libcelt/pitch.c
@@ -99,7 +99,7 @@
#define INPUT_SHIFT 15
-void find_spectral_pitch(kiss_fftr_cfg fft, const struct PsyDecay *decay, const celt_sig_t *x, const celt_sig_t *y, const celt_word16_t * restrict window, int overlap, int lag, int len, int C, int *pitch)
+void find_spectral_pitch(kiss_fftr_cfg fft, const struct PsyDecay *decay, const celt_sig_t * restrict x, const celt_sig_t * restrict y, const celt_word16_t * restrict window, int overlap, int lag, int len, int C, int *pitch)
{
int c, i;
celt_word32_t max_corr;
--- a/libcelt/psy.h
+++ b/libcelt/psy.h
@@ -35,7 +35,7 @@
struct PsyDecay {
/*celt_word16_t *decayL;*/
- const celt_word16_t *decayR;
+ const celt_word16_t * restrict decayR;
};
/** Pre-compute the decay of the psycho-acoustic spreading function */