All versions of MSVC that support C11 (namely >= v19.27) also support the restrict keyword, therefore av_restrict is no longer necessary since 75697836b1db3e0f0a3b7061be6be28d00c675a0.
Showing the changes to libavfilter (1 of 41 files). Show all
Unified · Split
| @@ -196,8 +196,8 @@ static av_cold void uninit(AVFilterContext *ctx) · 195 unmodified lines | ||
| 196 | 196 | av_freep(&s->gain_entry_cmd); |
| 197 | 197 | } |
| 198 | 198 | |
| 199 | −static void fast_convolute(FIREqualizerContext *av_restrict s, const float *av_restrict kernel_buf, float *av_restrict conv_buf, | |
| 200 | − OverlapIndex *av_restrict idx, float *av_restrict data, int nsamples) | |
| 199 | +static void fast_convolute(FIREqualizerContext *restrict s, const float *restrict kernel_buf, float *restrict conv_buf, | |
| 200 | + OverlapIndex *restrict idx, float *restrict data, int nsamples) | |
| 201 | 201 | { |
| 202 | 202 | if (nsamples <= s->nsamples_max) { |
| 203 | 203 | float *buf = conv_buf + idx->buf_idx * s->rdft_len; |
| @@ -233,9 +233,9 @@ static void fast_convolute(FIREqualizerContext *av_restrict s, const float *av_r · 29 unmodified lines | ||
| 233 | 233 | } |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | −static void fast_convolute_nonlinear(FIREqualizerContext *av_restrict s, const float *av_restrict kernel_buf, | |
| 237 | − float *av_restrict conv_buf, OverlapIndex *av_restrict idx, | |
| 238 | − float *av_restrict data, int nsamples) | |
| 236 | +static void fast_convolute_nonlinear(FIREqualizerContext *restrict s, const float *restrict kernel_buf, | |
| 237 | + float *restrict conv_buf, OverlapIndex *restrict idx, | |
| 238 | + float *restrict data, int nsamples) | |
| 239 | 239 | { |
| 240 | 240 | if (nsamples <= s->nsamples_max) { |
| 241 | 241 | float *buf = conv_buf + idx->buf_idx * s->rdft_len; |
| @@ -272,8 +272,8 @@ static void fast_convolute_nonlinear(FIREqualizerContext *av_restrict s, const f · 30 unmodified lines | ||
| 272 | 272 | } |
| 273 | 273 | } |
| 274 | 274 | |
| 275 | −static void fast_convolute2(FIREqualizerContext *av_restrict s, const float *av_restrict kernel_buf, AVComplexFloat *av_restrict conv_buf, | |
| 276 | − OverlapIndex *av_restrict idx, float *av_restrict data0, float *av_restrict data1, int nsamples) | |
| 275 | +static void fast_convolute2(FIREqualizerContext *restrict s, const float *restrict kernel_buf, AVComplexFloat *restrict conv_buf, | |
| 276 | + OverlapIndex *restrict idx, float *restrict data0, float *restrict data1, int nsamples) | |
| 277 | 277 | { |
| 278 | 278 | if (nsamples <= s->nsamples_max) { |
| 279 | 279 | AVComplexFloat *buf = conv_buf + idx->buf_idx * s->rdft_len; |