Commit ba238d87 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

more use of restrict

parent 32034747
......@@ -99,7 +99,7 @@ static void normalise16(celt_word16_t *x, int len, celt_word16_t val)
#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;
......
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment