History

configure: Remove av_restrict

All versions of MSVC that support C11 (namely >= v19.27) also support the restrict keyword, therefore av_restrict is no longer necessary since 75697836b1db3e0f0a3b7061be6be28d00c675a0.

Andreas Rheinhardt committed 2 years ago

Commit c00cd001 parent 53a51e741 files · +130 −167Browse files

Showing the changes to libavfilter (1 of 41 files). Show all

Unified · Split

libavfilter/af_firequalizer.c+7−7
@@ -196,8 +196,8 @@ static av_cold void uninit(AVFilterContext *ctx) · 195 unmodified lines
196196 av_freep(&s->gain_entry_cmd);
197197 }
198198
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)
201201 {
202202 if (nsamples <= s->nsamples_max) {
203203 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
233233 }
234234 }
235235
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)
239239 {
240240 if (nsamples <= s->nsamples_max) {
241241 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
272272 }
273273 }
274274
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)
277277 {
278278 if (nsamples <= s->nsamples_max) {
279279 AVComplexFloat *buf = conv_buf + idx->buf_idx * s->rdft_len;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t