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

Unified · Split

41 files
  1. configure +0 −16
  2. libavcodec/aacpsdsp_template.c +5 −5
  3. libavcodec/binkdsp.c +1 −2
  4. libavcodec/binkdsp.h +1 −3
  5. libavcodec/dnxhdenc.c +2 −2
  6. libavcodec/dnxhdenc.h +1 −3
  7. libavcodec/dvdec.c +1 −1
  8. libavcodec/elbg.c +3 −3
  9. libavcodec/h264qpel_template.c +41 −41
  10. libavcodec/idctdsp.c +7 −7
  11. libavcodec/idctdsp.h +5 −7
  12. libavcodec/loongarch/idctdsp_lasx.c +3 −3
  13. libavcodec/loongarch/idctdsp_loongarch.h +3 −3
  14. libavcodec/mips/idctdsp_mips.h +6 −6
  15. libavcodec/mips/idctdsp_mmi.c +3 −3
  16. libavcodec/mips/idctdsp_msa.c +3 −3
  17. libavcodec/mips/me_cmp_mips.h +1 −1
  18. libavcodec/mips/pixblockdsp_mips.h +3 −3
  19. libavcodec/mips/pixblockdsp_mmi.c +2 −2
  20. libavcodec/mips/pixblockdsp_msa.c +3 −3
  21. libavcodec/mpegaudiodec_template.c +1 −1
  22. libavcodec/opus_pvq.c +1 −1
  23. libavcodec/pixblockdsp.c +3 −3
  24. libavcodec/pixblockdsp.h +4 −6
  25. libavcodec/utils.c +2 −2
  26. libavfilter/af_firequalizer.c +7 −7
  27. libavformat/rtpenc.h +2 −2
  28. libavformat/rtpenc_h261.c +2 −2
  29. libavformat/rtpenc_h263.c +2 −2
  30. libavutil/arm/float_dsp_init_vfp.c +1 −1
  31. libavutil/fixed_dsp.c +1 −1
  32. libavutil/fixed_dsp.h +1 −2
  33. libavutil/float_dsp.c +1 −1
  34. libavutil/float_dsp.h +1 −3
  35. libavutil/mips/float_dsp_mips.c +1 −1
  36. libavutil/x86/fixed_dsp_init.c +1 −3
  37. libavutil/x86/float_dsp_init.c +1 −4
  38. tests/checkasm/fixed_dsp.c +1 −1
  39. tests/checkasm/float_dsp.c +1 −3
  40. tests/checkasm/pixblockdsp.c +1 −1
  41. tests/checkasm/vorbisdsp.c +1 −3
configure+0−16
@@ -6033,10 +6033,6 @@ extern_prefix=${sym%%ff_extern*} · 6032 unmodified lines
60336033
60346034 ! disabled inline_asm && check_inline_asm inline_asm '"" ::'
60356035
6036−for restrict_keyword in restrict __restrict__ __restrict ""; do
6037− test_code cc "" "char * $restrict_keyword p" && break
6038−done
6039−
60406036 check_cc pragma_deprecated "" '_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")'
60416037
60426038 # The global variable ensures the bits appear unchanged in the object file.
@@ -7543,17 +7539,6 @@ elif enabled_any msvc icl; then · 1500 unmodified lines
75437539 fi
75447540 # msvcrt10 x64 incorrectly enables log2, only msvcrt12 (MSVC 2013) onwards actually has log2.
75457541 check_cpp_condition log2 crtversion.h "_VC_CRT_MAJOR_VERSION >= 12"
7546− # The CRT headers contain __declspec(restrict) in a few places, but if redefining
7547− # restrict, this might break. MSVC 2010 and 2012 fail with __declspec(__restrict)
7548− # (as it ends up if the restrict redefine is done before including stdlib.h), while
7549− # MSVC 2013 and newer can handle it fine.
7550− # If this declspec fails, force including stdlib.h before the restrict redefinition
7551− # happens in config.h.
7552− if [ $restrict_keyword != restrict ]; then
7553− test_cc <<EOF || add_cflags -FIstdlib.h
7554−__declspec($restrict_keyword) void *foo(int);
7555−EOF
7556− fi
75577542 # the new SSA optimzer in VS2015 U3 is mis-optimizing some parts of the code
75587543 # Issue has been fixed in MSVC v19.00.24218.
75597544 test_cpp_condition windows.h "_MSC_FULL_VER >= 190024218" ||
@@ -8091,7 +8076,6 @@ cat > $TMPH <<EOF · 531 unmodified lines
80918076 #define AVCONV_DATADIR "$(eval c_escape $datadir)"
80928077 #define CC_IDENT "$(c_escape ${cc_ident:-Unknown compiler})"
80938078 #define OS_NAME $target_os
8094−#define av_restrict $restrict_keyword
80958079 #define EXTERN_PREFIX "${extern_prefix}"
80968080 #define EXTERN_ASM ${extern_prefix}
80978081 #define BUILDSUF "$build_suffix"
libavcodec/aacpsdsp_template.c+5−5
@@ -26,14 +26,14 @@ · 25 unmodified lines
2626 #include "libavutil/attributes.h"
2727 #include "aacpsdsp.h"
2828
29−static void ps_add_squares_c(INTFLOAT *av_restrict dst,
29+static void ps_add_squares_c(INTFLOAT *restrict dst,
3030 const INTFLOAT (*src)[2], int n)
3131 {
3232 for (int i = 0; i < n; i++)
3333 dst[i] += (UINTFLOAT)AAC_MADD28(src[i][0], src[i][0], src[i][1], src[i][1]);
3434 }
3535
36−static void ps_mul_pair_single_c(INTFLOAT (*av_restrict dst)[2],
36+static void ps_mul_pair_single_c(INTFLOAT (*restrict dst)[2],
3737 INTFLOAT (*src0)[2], INTFLOAT *src1,
3838 int n)
3939 {
@@ -43,7 +43,7 @@ static void ps_mul_pair_single_c(INTFLOAT (*av_restrict dst)[2], · 3 unmodified lines
4343 }
4444 }
4545
46−static void ps_hybrid_analysis_c(INTFLOAT (*av_restrict out)[2],
46+static void ps_hybrid_analysis_c(INTFLOAT (*restrict out)[2],
4747 INTFLOAT (*in)[2],
4848 const INTFLOAT (*filter)[8][2],
4949 ptrdiff_t stride, int n)
@@ -77,7 +77,7 @@ static void ps_hybrid_analysis_c(INTFLOAT (*av_restrict out)[2], · 27 unmodified lines
7777 }
7878 }
7979
80−static void ps_hybrid_analysis_ileave_c(INTFLOAT (*av_restrict out)[32][2],
80+static void ps_hybrid_analysis_ileave_c(INTFLOAT (*restrict out)[32][2],
8181 INTFLOAT L[2][38][64],
8282 int i, int len)
8383 {
@@ -90,7 +90,7 @@ static void ps_hybrid_analysis_ileave_c(INTFLOAT (*av_restrict out)[32][2], · 6 unmodified lines
9090 }
9191
9292 static void ps_hybrid_synthesis_deint_c(INTFLOAT out[2][38][64],
93− INTFLOAT (*av_restrict in)[32][2],
93+ INTFLOAT (*restrict in)[32][2],
9494 int i, int len)
9595 {
9696 for (; i < 64; i++) {
libavcodec/binkdsp.c+1−2
@@ -24,7 +24,6 @@ · 23 unmodified lines
2424 * Bink DSP routines
2525 */
2626
27−#include "config.h"
2827 #include "libavutil/attributes.h"
2928 #include "binkdsp.h"
3029
@@ -131,7 +130,7 @@ static void scale_block_c(const uint8_t src[64]/*align 8*/, uint8_t *dst/*align · 100 unmodified lines
131130 }
132131 }
133132
134−static void add_pixels8_c(uint8_t *av_restrict pixels, int16_t *block,
133+static void add_pixels8_c(uint8_t *restrict pixels, int16_t *block,
135134 int line_size)
136135 {
137136 int i;
libavcodec/binkdsp.h+1−3
@@ -29,13 +29,11 @@ · 28 unmodified lines
2929
3030 #include <stdint.h>
3131
32−#include "config.h"
33−
3432 typedef struct BinkDSPContext {
3533 void (*idct_put)(uint8_t *dest/*align 8*/, int line_size, int32_t *block/*align 16*/);
3634 void (*idct_add)(uint8_t *dest/*align 8*/, int line_size, int32_t *block/*align 16*/);
3735 void (*scale_block)(const uint8_t src[64]/*align 8*/, uint8_t *dst/*align 8*/, int linesize);
38− void (*add_pixels8)(uint8_t *av_restrict pixels, int16_t *block, int line_size);
36+ void (*add_pixels8)(uint8_t *restrict pixels, int16_t *block, int line_size);
3937 } BinkDSPContext;
4038
4139 void ff_binkdsp_init(BinkDSPContext *c);
libavcodec/dnxhdenc.c+2−2
@@ -78,7 +78,7 @@ static const AVClass dnxhd_class = { · 77 unmodified lines
7878 .version = LIBAVUTIL_VERSION_INT,
7979 };
8080
81−static void dnxhd_8bit_get_pixels_8x4_sym(int16_t *av_restrict block,
81+static void dnxhd_8bit_get_pixels_8x4_sym(int16_t *restrict block,
8282 const uint8_t *pixels,
8383 ptrdiff_t line_size)
8484 {
@@ -102,7 +102,7 @@ static void dnxhd_8bit_get_pixels_8x4_sym(int16_t *av_restrict block, · 17 unmodified lines
102102 }
103103
104104 static av_always_inline
105−void dnxhd_10bit_get_pixels_8x4_sym(int16_t *av_restrict block,
105+void dnxhd_10bit_get_pixels_8x4_sym(int16_t *restrict block,
106106 const uint8_t *pixels,
107107 ptrdiff_t line_size)
108108 {
libavcodec/dnxhdenc.h+1−3
@@ -26,8 +26,6 @@ · 25 unmodified lines
2626
2727 #include <stdint.h>
2828
29−#include "config.h"
30−
3129 #include "libavutil/mem_internal.h"
3230
3331 #include "mpegvideo.h"
@@ -107,7 +105,7 @@ typedef struct DNXHDEncContext { · 73 unmodified lines
107105 RCCMPEntry *mb_cmp_tmp;
108106 RCEntry *mb_rc;
109107
110− void (*get_pixels_8x4_sym)(int16_t *av_restrict /* align 16 */ block,
108+ void (*get_pixels_8x4_sym)(int16_t *restrict /* align 16 */ block,
111109 const uint8_t *pixels, ptrdiff_t line_size);
112110 } DNXHDEncContext;
113111
libavcodec/dvdec.c+1−1
@@ -346,7 +346,7 @@ static inline void bit_copy(PutBitContext *pb, GetBitContext *gb) · 345 unmodified lines
346346 put_bits(pb, bits_left, get_bits(gb, bits_left));
347347 }
348348
349−static av_always_inline void put_block_8x4(int16_t *block, uint8_t *av_restrict p, int stride)
349+static av_always_inline void put_block_8x4(int16_t *block, uint8_t *restrict p, int stride)
350350 {
351351 int i, j;
352352
libavcodec/elbg.c+3−3
@@ -361,7 +361,7 @@ static void do_shiftings(ELBGContext *elbg) · 360 unmodified lines
361361 }
362362 }
363363
364−static void do_elbg(ELBGContext *av_restrict elbg, int *points, int numpoints,
364+static void do_elbg(ELBGContext *restrict elbg, int *points, int numpoints,
365365 int max_steps)
366366 {
367367 int *const size_part = elbg->size_part;
@@ -435,7 +435,7 @@ static void do_elbg(ELBGContext *av_restrict elbg, int *points, int numpoints, · 67 unmodified lines
435435 * If not, it calls do_elbg for a (smaller) random sample of the points in
436436 * points.
437437 */
438−static void init_elbg(ELBGContext *av_restrict elbg, int *points, int *temp_points,
438+static void init_elbg(ELBGContext *restrict elbg, int *points, int *temp_points,
439439 int numpoints, int max_steps)
440440 {
441441 int dim = elbg->dim;
@@ -463,7 +463,7 @@ int avpriv_elbg_do(ELBGContext **elbgp, int *points, int dim, int numpoints, · 21 unmodified lines
463463 int *codebook, int num_cb, int max_steps,
464464 int *closest_cb, AVLFG *rand_state, uintptr_t flags)
465465 {
466− ELBGContext *const av_restrict elbg = *elbgp ? *elbgp : av_mallocz(sizeof(*elbg));
466+ ELBGContext *const restrict elbg = *elbgp ? *elbgp : av_mallocz(sizeof(*elbg));
467467
468468 if (!elbg)
469469 return AVERROR(ENOMEM);
libavcodec/h264qpel_template.c+41−41
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 #include "hpel_template.c"
2727 #include "pel_template.c"
2828
29−static inline void FUNC(copy_block2)(uint8_t *dst, const uint8_t *av_restrict src, int dstStride, int srcStride, int h)
29+static inline void FUNC(copy_block2)(uint8_t *dst, const uint8_t *restrict src, int dstStride, int srcStride, int h)
3030 {
3131 int i;
3232 for(i=0; i<h; i++)
@@ -37,7 +37,7 @@ static inline void FUNC(copy_block2)(uint8_t *dst, const uint8_t *av_restrict sr · 4 unmodified lines
3737 }
3838 }
3939
40−static inline void FUNC(copy_block4)(uint8_t *dst, const uint8_t *av_restrict src, int dstStride, int srcStride, int h)
40+static inline void FUNC(copy_block4)(uint8_t *dst, const uint8_t *restrict src, int dstStride, int srcStride, int h)
4141 {
4242 int i;
4343 for(i=0; i<h; i++)
@@ -48,7 +48,7 @@ static inline void FUNC(copy_block4)(uint8_t *dst, const uint8_t *av_restrict sr · 4 unmodified lines
4848 }
4949 }
5050
51−static inline void FUNC(copy_block8)(uint8_t *dst, const uint8_t *av_restrict src, int dstStride, int srcStride, int h)
51+static inline void FUNC(copy_block8)(uint8_t *dst, const uint8_t *restrict src, int dstStride, int srcStride, int h)
5252 {
5353 int i;
5454 for(i=0; i<h; i++)
@@ -60,7 +60,7 @@ static inline void FUNC(copy_block8)(uint8_t *dst, const uint8_t *av_restrict sr · 5 unmodified lines
6060 }
6161 }
6262
63−static inline void FUNC(copy_block16)(uint8_t *dst, const uint8_t *av_restrict src, int dstStride, int srcStride, int h)
63+static inline void FUNC(copy_block16)(uint8_t *dst, const uint8_t *restrict src, int dstStride, int srcStride, int h)
6464 {
6565 int i;
6666 for(i=0; i<h; i++)
@@ -75,13 +75,13 @@ static inline void FUNC(copy_block16)(uint8_t *dst, const uint8_t *av_restrict s · 8 unmodified lines
7575 }
7676
7777 #define H264_LOWPASS(OPNAME, OP, OP2) \
78−static av_unused void FUNC(OPNAME ## h264_qpel2_h_lowpass)(uint8_t *p_dst, const uint8_t *av_restrict p_src, int dstStride, int srcStride)\
78+static av_unused void FUNC(OPNAME ## h264_qpel2_h_lowpass)(uint8_t *p_dst, const uint8_t *restrict p_src, int dstStride, int srcStride)\
7979 {\
8080 const int h=2;\
8181 INIT_CLIP\
8282 int i;\
8383 pixel *dst = (pixel*)p_dst;\
84− const pixel *av_restrict src = (const pixel*)p_src;\
84+ const pixel *restrict src = (const pixel*)p_src;\
8585 dstStride >>= sizeof(pixel)-1;\
8686 srcStride >>= sizeof(pixel)-1;\
8787 for(i=0; i<h; i++)\
@@ -93,13 +93,13 @@ static av_unused void FUNC(OPNAME ## h264_qpel2_h_lowpass)(uint8_t *p_dst, const · 5 unmodified lines
9393 }\
9494 }\
9595 \
96−static av_unused void FUNC(OPNAME ## h264_qpel2_v_lowpass)(uint8_t *_dst, const uint8_t *av_restrict _src, int dstStride, int srcStride)\
96+static av_unused void FUNC(OPNAME ## h264_qpel2_v_lowpass)(uint8_t *_dst, const uint8_t *restrict _src, int dstStride, int srcStride)\
9797 {\
9898 const int w=2;\
9999 INIT_CLIP\
100100 int i;\
101101 pixel *dst = (pixel*)_dst;\
102− const pixel *av_restrict src = (const pixel*)_src;\
102+ const pixel *restrict src = (const pixel*)_src;\
103103 dstStride >>= sizeof(pixel)-1;\
104104 srcStride >>= sizeof(pixel)-1;\
105105 for(i=0; i<w; i++)\
@@ -118,7 +118,7 @@ static av_unused void FUNC(OPNAME ## h264_qpel2_v_lowpass)(uint8_t *_dst, const · 12 unmodified lines
118118 }\
119119 }\
120120 \
121−static av_unused void FUNC(OPNAME ## h264_qpel2_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, const uint8_t *av_restrict _src, int dstStride, int tmpStride, int srcStride)\
121+static av_unused void FUNC(OPNAME ## h264_qpel2_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, const uint8_t *restrict _src, int dstStride, int tmpStride, int srcStride)\
122122 {\
123123 const int h=2;\
124124 const int w=2;\
@@ -126,7 +126,7 @@ static av_unused void FUNC(OPNAME ## h264_qpel2_hv_lowpass)(uint8_t *_dst, pixel · 1 unmodified line
126126 INIT_CLIP\
127127 int i;\
128128 pixel *dst = (pixel*)_dst;\
129− const pixel *av_restrict src = (const pixel*)_src;\
129+ const pixel *restrict src = (const pixel*)_src;\
130130 dstStride >>= sizeof(pixel)-1;\
131131 srcStride >>= sizeof(pixel)-1;\
132132 src -= 2*srcStride;\
@@ -153,13 +153,13 @@ static av_unused void FUNC(OPNAME ## h264_qpel2_hv_lowpass)(uint8_t *_dst, pixel · 20 unmodified lines
153153 tmp++;\
154154 }\
155155 }\
156−static void FUNC(OPNAME ## h264_qpel4_h_lowpass)(uint8_t *_dst, const uint8_t *av_restrict _src, int dstStride, int srcStride)\
156+static void FUNC(OPNAME ## h264_qpel4_h_lowpass)(uint8_t *_dst, const uint8_t *restrict _src, int dstStride, int srcStride)\
157157 {\
158158 const int h=4;\
159159 INIT_CLIP\
160160 int i;\
161161 pixel *dst = (pixel*)_dst;\
162− const pixel *av_restrict src = (const pixel*)_src;\
162+ const pixel *restrict src = (const pixel*)_src;\
163163 dstStride >>= sizeof(pixel)-1;\
164164 srcStride >>= sizeof(pixel)-1;\
165165 for(i=0; i<h; i++)\
@@ -173,13 +173,13 @@ static void FUNC(OPNAME ## h264_qpel4_h_lowpass)(uint8_t *_dst, const uint8_t *a · 7 unmodified lines
173173 }\
174174 }\
175175 \
176−static void FUNC(OPNAME ## h264_qpel4_v_lowpass)(uint8_t *_dst, const uint8_t *av_restrict _src, int dstStride, int srcStride)\
176+static void FUNC(OPNAME ## h264_qpel4_v_lowpass)(uint8_t *_dst, const uint8_t *restrict _src, int dstStride, int srcStride)\
177177 {\
178178 const int w=4;\
179179 INIT_CLIP\
180180 int i;\
181181 pixel *dst = (pixel*)_dst;\
182− const pixel *av_restrict src = (const pixel*)_src;\
182+ const pixel *restrict src = (const pixel*)_src;\
183183 dstStride >>= sizeof(pixel)-1;\
184184 srcStride >>= sizeof(pixel)-1;\
185185 for(i=0; i<w; i++)\
@@ -202,7 +202,7 @@ static void FUNC(OPNAME ## h264_qpel4_v_lowpass)(uint8_t *_dst, const uint8_t *a · 16 unmodified lines
202202 }\
203203 }\
204204 \
205−static void FUNC(OPNAME ## h264_qpel4_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, const uint8_t *av_restrict _src, int dstStride, int tmpStride, int srcStride)\
205+static void FUNC(OPNAME ## h264_qpel4_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, const uint8_t *restrict _src, int dstStride, int tmpStride, int srcStride)\
206206 {\
207207 const int h=4;\
208208 const int w=4;\
@@ -210,7 +210,7 @@ static void FUNC(OPNAME ## h264_qpel4_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, · 1 unmodified line
210210 INIT_CLIP\
211211 int i;\
212212 pixel *dst = (pixel*)_dst;\
213− const pixel *av_restrict src = (const pixel*)_src;\
213+ const pixel *restrict src = (const pixel*)_src;\
214214 dstStride >>= sizeof(pixel)-1;\
215215 srcStride >>= sizeof(pixel)-1;\
216216 src -= 2*srcStride;\
@@ -244,13 +244,13 @@ static void FUNC(OPNAME ## h264_qpel4_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, · 27 unmodified lines
244244 }\
245245 }\
246246 \
247−static void FUNC(OPNAME ## h264_qpel8_h_lowpass)(uint8_t *_dst, const uint8_t *av_restrict _src, int dstStride, int srcStride)\
247+static void FUNC(OPNAME ## h264_qpel8_h_lowpass)(uint8_t *_dst, const uint8_t *restrict _src, int dstStride, int srcStride)\
248248 {\
249249 const int h=8;\
250250 INIT_CLIP\
251251 int i;\
252252 pixel *dst = (pixel*)_dst;\
253− const pixel *av_restrict src = (const pixel*)_src;\
253+ const pixel *restrict src = (const pixel*)_src;\
254254 dstStride >>= sizeof(pixel)-1;\
255255 srcStride >>= sizeof(pixel)-1;\
256256 for(i=0; i<h; i++)\
@@ -268,13 +268,13 @@ static void FUNC(OPNAME ## h264_qpel8_h_lowpass)(uint8_t *_dst, const uint8_t *a · 11 unmodified lines
268268 }\
269269 }\
270270 \
271−static void FUNC(OPNAME ## h264_qpel8_v_lowpass)(uint8_t *_dst, const uint8_t *av_restrict _src, int dstStride, int srcStride)\
271+static void FUNC(OPNAME ## h264_qpel8_v_lowpass)(uint8_t *_dst, const uint8_t *restrict _src, int dstStride, int srcStride)\
272272 {\
273273 const int w=8;\
274274 INIT_CLIP\
275275 int i;\
276276 pixel *dst = (pixel*)_dst;\
277− const pixel *av_restrict src = (const pixel*)_src;\
277+ const pixel *restrict src = (const pixel*)_src;\
278278 dstStride >>= sizeof(pixel)-1;\
279279 srcStride >>= sizeof(pixel)-1;\
280280 for(i=0; i<w; i++)\
@@ -305,7 +305,7 @@ static void FUNC(OPNAME ## h264_qpel8_v_lowpass)(uint8_t *_dst, const uint8_t *a · 24 unmodified lines
305305 }\
306306 }\
307307 \
308−static void FUNC(OPNAME ## h264_qpel8_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, const uint8_t *av_restrict _src, int dstStride, int tmpStride, int srcStride)\
308+static void FUNC(OPNAME ## h264_qpel8_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, const uint8_t *restrict _src, int dstStride, int tmpStride, int srcStride)\
309309 {\
310310 const int h=8;\
311311 const int w=8;\
@@ -313,7 +313,7 @@ static void FUNC(OPNAME ## h264_qpel8_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, · 1 unmodified line
313313 INIT_CLIP\
314314 int i;\
315315 pixel *dst = (pixel*)_dst;\
316− const pixel *av_restrict src = (const pixel*)_src;\
316+ const pixel *restrict src = (const pixel*)_src;\
317317 dstStride >>= sizeof(pixel)-1;\
318318 srcStride >>= sizeof(pixel)-1;\
319319 src -= 2*srcStride;\
@@ -359,7 +359,7 @@ static void FUNC(OPNAME ## h264_qpel8_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, · 39 unmodified lines
359359 }\
360360 }\
361361 \
362−static void FUNC(OPNAME ## h264_qpel16_v_lowpass)(uint8_t *dst, const uint8_t *av_restrict src, int dstStride, int srcStride)\
362+static void FUNC(OPNAME ## h264_qpel16_v_lowpass)(uint8_t *dst, const uint8_t *restrict src, int dstStride, int srcStride)\
363363 {\
364364 FUNC(OPNAME ## h264_qpel8_v_lowpass)(dst , src , dstStride, srcStride);\
365365 FUNC(OPNAME ## h264_qpel8_v_lowpass)(dst+8*sizeof(pixel), src+8*sizeof(pixel), dstStride, srcStride);\
@@ -369,7 +369,7 @@ static void FUNC(OPNAME ## h264_qpel16_v_lowpass)(uint8_t *dst, const uint8_t *a · 3 unmodified lines
369369 FUNC(OPNAME ## h264_qpel8_v_lowpass)(dst+8*sizeof(pixel), src+8*sizeof(pixel), dstStride, srcStride);\
370370 }\
371371 \
372−static void FUNC(OPNAME ## h264_qpel16_h_lowpass)(uint8_t *dst, const uint8_t *av_restrict src, int dstStride, int srcStride)\
372+static void FUNC(OPNAME ## h264_qpel16_h_lowpass)(uint8_t *dst, const uint8_t *restrict src, int dstStride, int srcStride)\
373373 {\
374374 FUNC(OPNAME ## h264_qpel8_h_lowpass)(dst , src , dstStride, srcStride);\
375375 FUNC(OPNAME ## h264_qpel8_h_lowpass)(dst+8*sizeof(pixel), src+8*sizeof(pixel), dstStride, srcStride);\
@@ -379,7 +379,7 @@ static void FUNC(OPNAME ## h264_qpel16_h_lowpass)(uint8_t *dst, const uint8_t *a · 3 unmodified lines
379379 FUNC(OPNAME ## h264_qpel8_h_lowpass)(dst+8*sizeof(pixel), src+8*sizeof(pixel), dstStride, srcStride);\
380380 }\
381381 \
382−static void FUNC(OPNAME ## h264_qpel16_hv_lowpass)(uint8_t *dst, pixeltmp *tmp, const uint8_t *av_restrict src, int dstStride, int tmpStride, int srcStride){\
382+static void FUNC(OPNAME ## h264_qpel16_hv_lowpass)(uint8_t *dst, pixeltmp *tmp, const uint8_t *restrict src, int dstStride, int tmpStride, int srcStride){\
383383 FUNC(OPNAME ## h264_qpel8_hv_lowpass)(dst , tmp , src , dstStride, tmpStride, srcStride);\
384384 FUNC(OPNAME ## h264_qpel8_hv_lowpass)(dst+8*sizeof(pixel), tmp+8, src+8*sizeof(pixel), dstStride, tmpStride, srcStride);\
385385 src += 8*srcStride;\
@@ -389,31 +389,31 @@ static void FUNC(OPNAME ## h264_qpel16_hv_lowpass)(uint8_t *dst, pixeltmp *tmp, · 3 unmodified lines
389389 }\
390390
391391 #define H264_MC(OPNAME, SIZE) \
392−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc00)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
392+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc00)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
393393 {\
394394 FUNCC(OPNAME ## pixels ## SIZE)(dst, src, stride, SIZE);\
395395 }\
396396 \
397−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc10)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
397+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc10)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
398398 {\
399399 uint8_t half[SIZE*SIZE*sizeof(pixel)];\
400400 FUNC(put_h264_qpel ## SIZE ## _h_lowpass)(half, src, SIZE*sizeof(pixel), stride);\
401401 FUNC(OPNAME ## pixels ## SIZE ## _l2)(dst, src, half, stride, stride, SIZE*sizeof(pixel), SIZE);\
402402 }\
403403 \
404−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc20)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
404+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc20)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
405405 {\
406406 FUNC(OPNAME ## h264_qpel ## SIZE ## _h_lowpass)(dst, src, stride, stride);\
407407 }\
408408 \
409−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc30)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
409+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc30)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
410410 {\
411411 uint8_t half[SIZE*SIZE*sizeof(pixel)];\
412412 FUNC(put_h264_qpel ## SIZE ## _h_lowpass)(half, src, SIZE*sizeof(pixel), stride);\
413413 FUNC(OPNAME ## pixels ## SIZE ## _l2)(dst, src+sizeof(pixel), half, stride, stride, SIZE*sizeof(pixel), SIZE);\
414414 }\
415415 \
416−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc01)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
416+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc01)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
417417 {\
418418 uint8_t full[SIZE*(SIZE+5)*sizeof(pixel)];\
419419 uint8_t * const full_mid= full + SIZE*2*sizeof(pixel);\
@@ -423,7 +423,7 @@ static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc01)(uint8_t *dst, const uint · 3 unmodified lines
423423 FUNC(OPNAME ## pixels ## SIZE ## _l2)(dst, full_mid, half, stride, SIZE*sizeof(pixel), SIZE*sizeof(pixel), SIZE);\
424424 }\
425425 \
426−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc02)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
426+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc02)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
427427 {\
428428 uint8_t full[SIZE*(SIZE+5)*sizeof(pixel)];\
429429 uint8_t * const full_mid= full + SIZE*2*sizeof(pixel);\
@@ -431,7 +431,7 @@ static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc02)(uint8_t *dst, const uint · 1 unmodified line
431431 FUNC(OPNAME ## h264_qpel ## SIZE ## _v_lowpass)(dst, full_mid, stride, SIZE*sizeof(pixel));\
432432 }\
433433 \
434−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc03)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
434+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc03)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
435435 {\
436436 uint8_t full[SIZE*(SIZE+5)*sizeof(pixel)];\
437437 uint8_t * const full_mid= full + SIZE*2*sizeof(pixel);\
@@ -441,7 +441,7 @@ static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc03)(uint8_t *dst, const uint · 3 unmodified lines
441441 FUNC(OPNAME ## pixels ## SIZE ## _l2)(dst, full_mid+SIZE*sizeof(pixel), half, stride, SIZE*sizeof(pixel), SIZE*sizeof(pixel), SIZE);\
442442 }\
443443 \
444−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc11)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
444+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc11)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
445445 {\
446446 uint8_t full[SIZE*(SIZE+5)*sizeof(pixel)];\
447447 uint8_t * const full_mid= full + SIZE*2*sizeof(pixel);\
@@ -453,7 +453,7 @@ static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc11)(uint8_t *dst, const uint · 5 unmodified lines
453453 FUNC(OPNAME ## pixels ## SIZE ## _l2)(dst, halfH, halfV, stride, SIZE*sizeof(pixel), SIZE*sizeof(pixel), SIZE);\
454454 }\
455455 \
456−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc31)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
456+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc31)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
457457 {\
458458 uint8_t full[SIZE*(SIZE+5)*sizeof(pixel)];\
459459 uint8_t * const full_mid= full + SIZE*2*sizeof(pixel);\
@@ -465,7 +465,7 @@ static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc31)(uint8_t *dst, const uint · 5 unmodified lines
465465 FUNC(OPNAME ## pixels ## SIZE ## _l2)(dst, halfH, halfV, stride, SIZE*sizeof(pixel), SIZE*sizeof(pixel), SIZE);\
466466 }\
467467 \
468−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc13)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
468+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc13)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
469469 {\
470470 uint8_t full[SIZE*(SIZE+5)*sizeof(pixel)];\
471471 uint8_t * const full_mid= full + SIZE*2*sizeof(pixel);\
@@ -477,7 +477,7 @@ static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc13)(uint8_t *dst, const uint · 5 unmodified lines
477477 FUNC(OPNAME ## pixels ## SIZE ## _l2)(dst, halfH, halfV, stride, SIZE*sizeof(pixel), SIZE*sizeof(pixel), SIZE);\
478478 }\
479479 \
480−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc33)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
480+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc33)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
481481 {\
482482 uint8_t full[SIZE*(SIZE+5)*sizeof(pixel)];\
483483 uint8_t * const full_mid= full + SIZE*2*sizeof(pixel);\
@@ -489,13 +489,13 @@ static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc33)(uint8_t *dst, const uint · 5 unmodified lines
489489 FUNC(OPNAME ## pixels ## SIZE ## _l2)(dst, halfH, halfV, stride, SIZE*sizeof(pixel), SIZE*sizeof(pixel), SIZE);\
490490 }\
491491 \
492−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc22)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
492+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc22)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
493493 {\
494494 pixeltmp tmp[SIZE*(SIZE+5)*sizeof(pixel)];\
495495 FUNC(OPNAME ## h264_qpel ## SIZE ## _hv_lowpass)(dst, tmp, src, stride, SIZE*sizeof(pixel), stride);\
496496 }\
497497 \
498−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc21)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
498+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc21)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
499499 {\
500500 pixeltmp tmp[SIZE*(SIZE+5)*sizeof(pixel)];\
501501 uint8_t halfH[SIZE*SIZE*sizeof(pixel)];\
@@ -505,7 +505,7 @@ static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc21)(uint8_t *dst, const uint · 3 unmodified lines
505505 FUNC(OPNAME ## pixels ## SIZE ## _l2)(dst, halfH, halfHV, stride, SIZE*sizeof(pixel), SIZE*sizeof(pixel), SIZE);\
506506 }\
507507 \
508−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc23)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
508+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc23)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
509509 {\
510510 pixeltmp tmp[SIZE*(SIZE+5)*sizeof(pixel)];\
511511 uint8_t halfH[SIZE*SIZE*sizeof(pixel)];\
@@ -515,7 +515,7 @@ static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc23)(uint8_t *dst, const uint · 3 unmodified lines
515515 FUNC(OPNAME ## pixels ## SIZE ## _l2)(dst, halfH, halfHV, stride, SIZE*sizeof(pixel), SIZE*sizeof(pixel), SIZE);\
516516 }\
517517 \
518−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc12)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
518+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc12)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
519519 {\
520520 uint8_t full[SIZE*(SIZE+5)*sizeof(pixel)];\
521521 uint8_t * const full_mid= full + SIZE*2*sizeof(pixel);\
@@ -528,7 +528,7 @@ static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc12)(uint8_t *dst, const uint · 6 unmodified lines
528528 FUNC(OPNAME ## pixels ## SIZE ## _l2)(dst, halfV, halfHV, stride, SIZE*sizeof(pixel), SIZE*sizeof(pixel), SIZE);\
529529 }\
530530 \
531−static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc32)(uint8_t *dst, const uint8_t *av_restrict src, ptrdiff_t stride)\
531+static void FUNCC(OPNAME ## h264_qpel ## SIZE ## _mc32)(uint8_t *dst, const uint8_t *restrict src, ptrdiff_t stride)\
532532 {\
533533 uint8_t full[SIZE*(SIZE+5)*sizeof(pixel)];\
534534 uint8_t * const full_mid= full + SIZE*2*sizeof(pixel);\
libavcodec/idctdsp.c+7−7
@@ -70,7 +70,7 @@ av_cold void ff_init_scantable_permutation(uint8_t *idct_permutation, · 69 unmodified lines
7070 }
7171 }
7272
73−void ff_put_pixels_clamped_c(const int16_t *block, uint8_t *av_restrict pixels,
73+void ff_put_pixels_clamped_c(const int16_t *block, uint8_t *restrict pixels,
7474 ptrdiff_t line_size)
7575 {
7676 int i;
@@ -91,7 +91,7 @@ void ff_put_pixels_clamped_c(const int16_t *block, uint8_t *av_restrict pixels, · 14 unmodified lines
9191 }
9292 }
9393
94−static void put_pixels_clamped4_c(const int16_t *block, uint8_t *av_restrict pixels,
94+static void put_pixels_clamped4_c(const int16_t *block, uint8_t *restrict pixels,
9595 int line_size)
9696 {
9797 int i;
@@ -108,7 +108,7 @@ static void put_pixels_clamped4_c(const int16_t *block, uint8_t *av_restrict pix · 10 unmodified lines
108108 }
109109 }
110110
111−static void put_pixels_clamped2_c(const int16_t *block, uint8_t *av_restrict pixels,
111+static void put_pixels_clamped2_c(const int16_t *block, uint8_t *restrict pixels,
112112 int line_size)
113113 {
114114 int i;
@@ -124,7 +124,7 @@ static void put_pixels_clamped2_c(const int16_t *block, uint8_t *av_restrict pix · 9 unmodified lines
124124 }
125125
126126 static void put_signed_pixels_clamped_c(const int16_t *block,
127− uint8_t *av_restrict pixels,
127+ uint8_t *restrict pixels,
128128 ptrdiff_t line_size)
129129 {
130130 int i, j;
@@ -144,7 +144,7 @@ static void put_signed_pixels_clamped_c(const int16_t *block, · 13 unmodified lines
144144 }
145145 }
146146
147−void ff_add_pixels_clamped_c(const int16_t *block, uint8_t *av_restrict pixels,
147+void ff_add_pixels_clamped_c(const int16_t *block, uint8_t *restrict pixels,
148148 ptrdiff_t line_size)
149149 {
150150 int i;
@@ -164,7 +164,7 @@ void ff_add_pixels_clamped_c(const int16_t *block, uint8_t *av_restrict pixels, · 13 unmodified lines
164164 }
165165 }
166166
167−static void add_pixels_clamped4_c(const int16_t *block, uint8_t *av_restrict pixels,
167+static void add_pixels_clamped4_c(const int16_t *block, uint8_t *restrict pixels,
168168 int line_size)
169169 {
170170 int i;
@@ -180,7 +180,7 @@ static void add_pixels_clamped4_c(const int16_t *block, uint8_t *av_restrict pix · 9 unmodified lines
180180 }
181181 }
182182
183−static void add_pixels_clamped2_c(const int16_t *block, uint8_t *av_restrict pixels,
183+static void add_pixels_clamped2_c(const int16_t *block, uint8_t *restrict pixels,
184184 int line_size)
185185 {
186186 int i;
libavcodec/idctdsp.h+5−7
@@ -22,8 +22,6 @@ · 21 unmodified lines
2222 #include <stddef.h>
2323 #include <stdint.h>
2424
25−#include "config.h"
26−
2725 struct AVCodecContext;
2826
2927 enum idct_permutation_type {
@@ -45,13 +43,13 @@ int ff_init_scantable_permutation_x86(uint8_t *idct_permutation, · 15 unmodified lines
4543 typedef struct IDCTDSPContext {
4644 /* pixel ops : interface with DCT */
4745 void (*put_pixels_clamped)(const int16_t *block /* align 16 */,
48− uint8_t *av_restrict pixels /* align 8 */,
46+ uint8_t *restrict pixels /* align 8 */,
4947 ptrdiff_t line_size);
5048 void (*put_signed_pixels_clamped)(const int16_t *block /* align 16 */,
51− uint8_t *av_restrict pixels /* align 8 */,
49+ uint8_t *restrict pixels /* align 8 */,
5250 ptrdiff_t line_size);
5351 void (*add_pixels_clamped)(const int16_t *block /* align 16 */,
54− uint8_t *av_restrict pixels /* align 8 */,
52+ uint8_t *restrict pixels /* align 8 */,
5553 ptrdiff_t line_size);
5654
5755 void (*idct)(int16_t *block /* align 16 */);
@@ -91,9 +89,9 @@ typedef struct IDCTDSPContext { · 33 unmodified lines
9189 int mpeg4_studio_profile;
9290 } IDCTDSPContext;
9391
94−void ff_put_pixels_clamped_c(const int16_t *block, uint8_t *av_restrict pixels,
92+void ff_put_pixels_clamped_c(const int16_t *block, uint8_t *restrict pixels,
9593 ptrdiff_t line_size);
96−void ff_add_pixels_clamped_c(const int16_t *block, uint8_t *av_restrict pixels,
94+void ff_add_pixels_clamped_c(const int16_t *block, uint8_t *restrict pixels,
9795 ptrdiff_t line_size);
9896
9997 void ff_idctdsp_init(IDCTDSPContext *c, struct AVCodecContext *avctx);
libavcodec/loongarch/idctdsp_lasx.c+3−3
@@ -23,7 +23,7 @@ · 22 unmodified lines
2323 #include "libavutil/loongarch/loongson_intrinsics.h"
2424
2525 void ff_put_pixels_clamped_lasx(const int16_t *block,
26− uint8_t *av_restrict pixels,
26+ uint8_t *restrict pixels,
2727 ptrdiff_t stride)
2828 {
2929 __m256i b0, b1, b2, b3;
@@ -48,7 +48,7 @@ void ff_put_pixels_clamped_lasx(const int16_t *block, · 18 unmodified lines
4848 }
4949
5050 void ff_put_signed_pixels_clamped_lasx(const int16_t *block,
51− uint8_t *av_restrict pixels,
51+ uint8_t *restrict pixels,
5252 ptrdiff_t stride)
5353 {
5454 __m256i b0, b1, b2, b3;
@@ -77,7 +77,7 @@ void ff_put_signed_pixels_clamped_lasx(const int16_t *block, · 22 unmodified lines
7777 }
7878
7979 void ff_add_pixels_clamped_lasx(const int16_t *block,
80− uint8_t *av_restrict pixels,
80+ uint8_t *restrict pixels,
8181 ptrdiff_t stride)
8282 {
8383 __m256i b0, b1, b2, b3;
libavcodec/loongarch/idctdsp_loongarch.h+3−3
@@ -29,13 +29,13 @@ void ff_simple_idct_lasx(int16_t *block); · 28 unmodified lines
2929 void ff_simple_idct_put_lasx(uint8_t *dest, ptrdiff_t stride_dst, int16_t *block);
3030 void ff_simple_idct_add_lasx(uint8_t *dest, ptrdiff_t stride_dst, int16_t *block);
3131 void ff_put_pixels_clamped_lasx(const int16_t *block,
32− uint8_t *av_restrict pixels,
32+ uint8_t *restrict pixels,
3333 ptrdiff_t line_size);
3434 void ff_put_signed_pixels_clamped_lasx(const int16_t *block,
35− uint8_t *av_restrict pixels,
35+ uint8_t *restrict pixels,
3636 ptrdiff_t line_size);
3737 void ff_add_pixels_clamped_lasx(const int16_t *block,
38− uint8_t *av_restrict pixels,
38+ uint8_t *restrict pixels,
3939 ptrdiff_t line_size);
4040
4141 #endif /* AVCODEC_LOONGARCH_IDCTDSP_LOONGARCH_H */
libavcodec/mips/idctdsp_mips.h+6−6
@@ -25,13 +25,13 @@ · 24 unmodified lines
2525 #include "../mpegvideo.h"
2626
2727 void ff_put_pixels_clamped_msa(const int16_t *block,
28− uint8_t *av_restrict pixels,
28+ uint8_t *restrict pixels,
2929 ptrdiff_t line_size);
3030 void ff_put_signed_pixels_clamped_msa(const int16_t *block,
31− uint8_t *av_restrict pixels,
31+ uint8_t *restrict pixels,
3232 ptrdiff_t line_size);
3333 void ff_add_pixels_clamped_msa(const int16_t *block,
34− uint8_t *av_restrict pixels,
34+ uint8_t *restrict pixels,
3535 ptrdiff_t line_size);
3636 void ff_j_rev_dct_msa(int16_t *data);
3737 void ff_jref_idct_put_msa(uint8_t *dest, ptrdiff_t stride, int16_t *block);
@@ -41,11 +41,11 @@ void ff_simple_idct_put_msa(uint8_t *dest, ptrdiff_t stride_dst, int16_t *block) · 3 unmodified lines
4141 void ff_simple_idct_add_msa(uint8_t *dest, ptrdiff_t stride_dst, int16_t *block);
4242
4343 void ff_put_pixels_clamped_mmi(const int16_t *block,
44− uint8_t *av_restrict pixels, ptrdiff_t line_size);
44+ uint8_t *restrict pixels, ptrdiff_t line_size);
4545 void ff_put_signed_pixels_clamped_mmi(const int16_t *block,
46− uint8_t *av_restrict pixels, ptrdiff_t line_size);
46+ uint8_t *restrict pixels, ptrdiff_t line_size);
4747 void ff_add_pixels_clamped_mmi(const int16_t *block,
48− uint8_t *av_restrict pixels, ptrdiff_t line_size);
48+ uint8_t *restrict pixels, ptrdiff_t line_size);
4949 void ff_simple_idct_8_mmi(int16_t *block);
5050 void ff_simple_idct_put_8_mmi(uint8_t *dest, ptrdiff_t line_size, int16_t *block);
5151 void ff_simple_idct_add_8_mmi(uint8_t *dest, ptrdiff_t line_size, int16_t *block);
libavcodec/mips/idctdsp_mmi.c+3−3
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 #include "libavutil/mips/mmiutils.h"
2727
2828 void ff_put_pixels_clamped_mmi(const int16_t *block,
29− uint8_t *av_restrict pixels, ptrdiff_t line_size)
29+ uint8_t *restrict pixels, ptrdiff_t line_size)
3030 {
3131 double ftmp[8];
3232
@@ -83,7 +83,7 @@ void ff_put_pixels_clamped_mmi(const int16_t *block, · 50 unmodified lines
8383 }
8484
8585 void ff_put_signed_pixels_clamped_mmi(const int16_t *block,
86− uint8_t *av_restrict pixels, ptrdiff_t line_size)
86+ uint8_t *restrict pixels, ptrdiff_t line_size)
8787 {
8888 double ftmp[5];
8989
@@ -148,7 +148,7 @@ void ff_put_signed_pixels_clamped_mmi(const int16_t *block, · 58 unmodified lines
148148 }
149149
150150 void ff_add_pixels_clamped_mmi(const int16_t *block,
151− uint8_t *av_restrict pixels, ptrdiff_t line_size)
151+ uint8_t *restrict pixels, ptrdiff_t line_size)
152152 {
153153 double ftmp[9];
154154 uint64_t tmp[1];
libavcodec/mips/idctdsp_msa.c+3−3
@@ -125,21 +125,21 @@ static void add_pixels_clamped_msa(const int16_t *block, uint8_t *pixels, · 124 unmodified lines
125125 }
126126
127127 void ff_put_pixels_clamped_msa(const int16_t *block,
128− uint8_t *av_restrict pixels,
128+ uint8_t *restrict pixels,
129129 ptrdiff_t line_size)
130130 {
131131 put_pixels_clamped_msa(block, pixels, line_size);
132132 }
133133
134134 void ff_put_signed_pixels_clamped_msa(const int16_t *block,
135− uint8_t *av_restrict pixels,
135+ uint8_t *restrict pixels,
136136 ptrdiff_t line_size)
137137 {
138138 put_signed_pixels_clamped_msa(block, pixels, line_size);
139139 }
140140
141141 void ff_add_pixels_clamped_msa(const int16_t *block,
142− uint8_t *av_restrict pixels,
142+ uint8_t *restrict pixels,
143143 ptrdiff_t line_size)
144144 {
145145 add_pixels_clamped_msa(block, pixels, line_size);
libavcodec/mips/me_cmp_mips.h+1−1
@@ -54,7 +54,7 @@ int ff_sse8_msa(MpegEncContext *v, const uint8_t *pu8Src, const uint8_t *pu8Ref, · 53 unmodified lines
5454 ptrdiff_t stride, int i32Height);
5555 int ff_sse4_msa(MpegEncContext *v, const uint8_t *pu8Src, const uint8_t *pu8Ref,
5656 ptrdiff_t stride, int i32Height);
57−void ff_add_pixels8_msa(const uint8_t *av_restrict pixels, int16_t *block,
57+void ff_add_pixels8_msa(const uint8_t *restrict pixels, int16_t *block,
5858 ptrdiff_t stride);
5959
6060 #endif // #ifndef AVCODEC_MIPS_ME_CMP_MIPS_H
libavcodec/mips/pixblockdsp_mips.h+3−3
@@ -24,16 +24,16 @@ · 23 unmodified lines
2424
2525 #include "../mpegvideo.h"
2626
27−void ff_diff_pixels_msa(int16_t *av_restrict block, const uint8_t *src1,
27+void ff_diff_pixels_msa(int16_t *restrict block, const uint8_t *src1,
2828 const uint8_t *src2, ptrdiff_t stride);
2929 void ff_get_pixels_16_msa(int16_t *restrict dst, const uint8_t *src,
3030 ptrdiff_t stride);
3131 void ff_get_pixels_8_msa(int16_t *restrict dst, const uint8_t *src,
3232 ptrdiff_t stride);
3333
34−void ff_get_pixels_8_mmi(int16_t *av_restrict block, const uint8_t *pixels,
34+void ff_get_pixels_8_mmi(int16_t *restrict block, const uint8_t *pixels,
3535 ptrdiff_t stride);
36−void ff_diff_pixels_mmi(int16_t *av_restrict block, const uint8_t *src1,
36+void ff_diff_pixels_mmi(int16_t *restrict block, const uint8_t *src1,
3737 const uint8_t *src2, ptrdiff_t stride);
3838
3939 #endif // #ifndef AVCODEC_MIPS_PIXBLOCKDSP_MIPS_H
libavcodec/mips/pixblockdsp_mmi.c+2−2
@@ -25,7 +25,7 @@ · 24 unmodified lines
2525 #include "libavutil/mips/asmdefs.h"
2626 #include "libavutil/mips/mmiutils.h"
2727
28−void ff_get_pixels_8_mmi(int16_t *av_restrict block, const uint8_t *pixels,
28+void ff_get_pixels_8_mmi(int16_t *restrict block, const uint8_t *pixels,
2929 ptrdiff_t stride)
3030 {
3131 double ftmp[7];
@@ -94,7 +94,7 @@ void ff_get_pixels_8_mmi(int16_t *av_restrict block, const uint8_t *pixels, · 62 unmodified lines
9494 );
9595 }
9696
97−void ff_diff_pixels_mmi(int16_t *av_restrict block, const uint8_t *src1,
97+void ff_diff_pixels_mmi(int16_t *restrict block, const uint8_t *src1,
9898 const uint8_t *src2, ptrdiff_t stride)
9999 {
100100 double ftmp[5];
libavcodec/mips/pixblockdsp_msa.c+3−3
@@ -124,19 +124,19 @@ static void copy_width16_msa(const uint8_t *src, int32_t src_stride, · 123 unmodified lines
124124 }
125125 }
126126
127−void ff_get_pixels_16_msa(int16_t *av_restrict dest, const uint8_t *src,
127+void ff_get_pixels_16_msa(int16_t *restrict dest, const uint8_t *src,
128128 ptrdiff_t stride)
129129 {
130130 copy_width16_msa(src, stride, (uint8_t *) dest, 16, 8);
131131 }
132132
133−void ff_get_pixels_8_msa(int16_t *av_restrict dest, const uint8_t *src,
133+void ff_get_pixels_8_msa(int16_t *restrict dest, const uint8_t *src,
134134 ptrdiff_t stride)
135135 {
136136 copy_8bit_to_16bit_width8_msa(src, stride, dest, 8, 8);
137137 }
138138
139−void ff_diff_pixels_msa(int16_t *av_restrict block, const uint8_t *src1,
139+void ff_diff_pixels_msa(int16_t *restrict block, const uint8_t *src1,
140140 const uint8_t *src2, ptrdiff_t stride)
141141 {
142142 diff_pixels_msa(block, src1, src2, stride);
libavcodec/mpegaudiodec_template.c+1−1
@@ -92,7 +92,7 @@ typedef struct MPADecodeContext { · 91 unmodified lines
9292 int err_recognition;
9393 AVCodecContext* avctx;
9494 MPADSPContext mpadsp;
95− void (*butterflies_float)(float *av_restrict v1, float *av_restrict v2, int len);
95+ void (*butterflies_float)(float *restrict v1, float *restrict v2, int len);
9696 AVFrame *frame;
9797 uint32_t crc;
9898 } MPADecodeContext;
libavcodec/opus_pvq.c+1−1
@@ -80,7 +80,7 @@ static inline int celt_pulses2bits(const uint8_t *cache, int pulses) · 79 unmodified lines
8080 return (pulses == 0) ? 0 : cache[pulses] + 1;
8181 }
8282
83−static inline void celt_normalize_residual(const int * av_restrict iy, float * av_restrict X,
83+static inline void celt_normalize_residual(const int * restrict iy, float * restrict X,
8484 int N, float g)
8585 {
8686 int i;
libavcodec/pixblockdsp.c+3−3
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424 #include "avcodec.h"
2525 #include "pixblockdsp.h"
2626
27−static void get_pixels_16_c(int16_t *av_restrict block, const uint8_t *pixels,
27+static void get_pixels_16_c(int16_t *restrict block, const uint8_t *pixels,
2828 ptrdiff_t stride)
2929 {
3030 AV_COPY128U(block + 0 * 8, pixels + 0 * stride);
@@ -37,7 +37,7 @@ static void get_pixels_16_c(int16_t *av_restrict block, const uint8_t *pixels, · 6 unmodified lines
3737 AV_COPY128U(block + 7 * 8, pixels + 7 * stride);
3838 }
3939
40−static void get_pixels_8_c(int16_t *av_restrict block, const uint8_t *pixels,
40+static void get_pixels_8_c(int16_t *restrict block, const uint8_t *pixels,
4141 ptrdiff_t stride)
4242 {
4343 int i;
@@ -57,7 +57,7 @@ static void get_pixels_8_c(int16_t *av_restrict block, const uint8_t *pixels, · 13 unmodified lines
5757 }
5858 }
5959
60−static void diff_pixels_c(int16_t *av_restrict block, const uint8_t *s1,
60+static void diff_pixels_c(int16_t *restrict block, const uint8_t *s1,
6161 const uint8_t *s2, ptrdiff_t stride)
6262 {
6363 int i;
libavcodec/pixblockdsp.h+4−6
@@ -21,22 +21,20 @@ · 20 unmodified lines
2121
2222 #include <stdint.h>
2323
24−#include "config.h"
25−
2624 #include "avcodec.h"
2725
2826 typedef struct PixblockDSPContext {
29− void (*get_pixels)(int16_t *av_restrict block /* align 16 */,
27+ void (*get_pixels)(int16_t *restrict block /* align 16 */,
3028 const uint8_t *pixels /* align 8 */,
3129 ptrdiff_t stride);
32− void (*get_pixels_unaligned)(int16_t *av_restrict block /* align 16 */,
30+ void (*get_pixels_unaligned)(int16_t *restrict block /* align 16 */,
3331 const uint8_t *pixels,
3432 ptrdiff_t stride);
35− void (*diff_pixels)(int16_t *av_restrict block /* align 16 */,
33+ void (*diff_pixels)(int16_t *restrict block /* align 16 */,
3634 const uint8_t *s1 /* align 8 */,
3735 const uint8_t *s2 /* align 8 */,
3836 ptrdiff_t stride);
39− void (*diff_pixels_unaligned)(int16_t *av_restrict block /* align 16 */,
37+ void (*diff_pixels_unaligned)(int16_t *restrict block /* align 16 */,
4038 const uint8_t *s1,
4139 const uint8_t *s2,
4240 ptrdiff_t stride);
libavcodec/utils.c+2−2
@@ -939,9 +939,9 @@ void ff_thread_report_progress2(AVCodecContext *avctx, int field, int thread, in · 938 unmodified lines
939939
940940 #endif
941941
942−const uint8_t *avpriv_find_start_code(const uint8_t *av_restrict p,
942+const uint8_t *avpriv_find_start_code(const uint8_t *restrict p,
943943 const uint8_t *end,
944− uint32_t *av_restrict state)
944+ uint32_t *restrict state)
945945 {
946946 int i;
947947
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;
libavformat/rtpenc.h+2−2
@@ -97,7 +97,7 @@ void ff_rtp_send_vp9(AVFormatContext *s1, const uint8_t *buff, int size); · 96 unmodified lines
9797 void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buff, int size);
9898 void ff_rtp_send_raw_rfc4175(AVFormatContext *s1, const uint8_t *buf, int size, int interlaced, int field);
9999
100−const uint8_t *ff_h263_find_resync_marker_reverse(const uint8_t *av_restrict start,
101− const uint8_t *av_restrict end);
100+const uint8_t *ff_h263_find_resync_marker_reverse(const uint8_t *restrict start,
101+ const uint8_t *restrict end);
102102
103103 #endif /* AVFORMAT_RTPENC_H */
libavformat/rtpenc_h261.c+2−2
@@ -24,8 +24,8 @@ · 23 unmodified lines
2424
2525 #define RTP_H261_HEADER_SIZE 4
2626
27−static const uint8_t *find_resync_marker_reverse(const uint8_t *av_restrict start,
28− const uint8_t *av_restrict end)
27+static const uint8_t *find_resync_marker_reverse(const uint8_t *restrict start,
28+ const uint8_t *restrict end)
2929 {
3030 const uint8_t *p = end - 1;
3131 start += 1; /* Make sure we never return the original start. */
libavformat/rtpenc_h263.c+2−2
@@ -23,8 +23,8 @@ · 22 unmodified lines
2323 #include "avformat.h"
2424 #include "rtpenc.h"
2525
26−const uint8_t *ff_h263_find_resync_marker_reverse(const uint8_t *av_restrict start,
27− const uint8_t *av_restrict end)
26+const uint8_t *ff_h263_find_resync_marker_reverse(const uint8_t *restrict start,
27+ const uint8_t *restrict end)
2828 {
2929 const uint8_t *p = end - 1;
3030 start += 1; /* Make sure we never return the original start. */
libavutil/arm/float_dsp_init_vfp.c+1−1
@@ -32,7 +32,7 @@ void ff_vector_fmul_window_vfp(float *dst, const float *src0, · 31 unmodified lines
3232 void ff_vector_fmul_reverse_vfp(float *dst, const float *src0,
3333 const float *src1, int len);
3434
35−void ff_butterflies_float_vfp(float *av_restrict v1, float *av_restrict v2, int len);
35+void ff_butterflies_float_vfp(float *restrict v1, float *restrict v2, int len);
3636
3737 av_cold void ff_float_dsp_init_vfp(AVFloatDSPContext *fdsp, int cpu_flags)
3838 {
libavutil/fixed_dsp.c+1−1
@@ -135,7 +135,7 @@ static int scalarproduct_fixed_c(const int *v1, const int *v2, int len) · 134 unmodified lines
135135 return (int)(p >> 31);
136136 }
137137
138−static void butterflies_fixed_c(int *av_restrict v1s, int *av_restrict v2, int len)
138+static void butterflies_fixed_c(int *restrict v1s, int *restrict v2, int len)
139139 {
140140 int i;
141141 unsigned int *v1 = v1s;
libavutil/fixed_dsp.h+1−2
@@ -49,7 +49,6 @@ · 48 unmodified lines
4949 #define AVUTIL_FIXED_DSP_H
5050
5151 #include <stdint.h>
52−#include "config.h"
5352 #include "attributes.h"
5453 #include "libavcodec/mathops.h"
5554
@@ -150,7 +149,7 @@ typedef struct AVFixedDSPContext { · 94 unmodified lines
150149 * @param v2 second input vector, difference output, 16-byte aligned
151150 * @param len length of vectors, multiple of 4
152151 */
153− void (*butterflies_fixed)(int *av_restrict v1, int *av_restrict v2, int len);
152+ void (*butterflies_fixed)(int *restrict v1, int *restrict v2, int len);
154153 } AVFixedDSPContext;
155154
156155 /**
libavutil/float_dsp.c+1−1
@@ -109,7 +109,7 @@ static void vector_fmul_reverse_c(float *dst, const float *src0, · 108 unmodified lines
109109 dst[i] = src0[i] * src1[-i];
110110 }
111111
112−static void butterflies_float_c(float *av_restrict v1, float *av_restrict v2,
112+static void butterflies_float_c(float *restrict v1, float *restrict v2,
113113 int len)
114114 {
115115 int i;
libavutil/float_dsp.h+1−3
@@ -19,8 +19,6 @@ · 18 unmodified lines
1919 #ifndef AVUTIL_FLOAT_DSP_H
2020 #define AVUTIL_FLOAT_DSP_H
2121
22−#include "config.h"
23−
2422 typedef struct AVFloatDSPContext {
2523 /**
2624 * Calculate the entry wise product of two vectors of floats and store the result in
@@ -161,7 +159,7 @@ typedef struct AVFloatDSPContext { · 134 unmodified lines
161159 * @param v2 second input vector, difference output, 16-byte aligned
162160 * @param len length of vectors, multiple of 4
163161 */
164− void (*butterflies_float)(float *av_restrict v1, float *av_restrict v2, int len);
162+ void (*butterflies_float)(float *restrict v1, float *restrict v2, int len);
165163
166164 /**
167165 * Calculate the scalar product of two vectors of floats.
libavutil/mips/float_dsp_mips.c+1−1
@@ -224,7 +224,7 @@ static void vector_fmul_window_mips(float *dst, const float *src0, · 223 unmodified lines
224224 );
225225 }
226226
227−static void butterflies_float_mips(float *av_restrict v1, float *av_restrict v2,
227+static void butterflies_float_mips(float *restrict v1, float *restrict v2,
228228 int len)
229229 {
230230 float temp0, temp1, temp2, temp3, temp4;
libavutil/x86/fixed_dsp_init.c+1−3
@@ -16,14 +16,12 @@ · 15 unmodified lines
1616 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1717 */
1818
19−#include "config.h"
20−
2119 #include "libavutil/attributes.h"
2220 #include "libavutil/cpu.h"
2321 #include "libavutil/fixed_dsp.h"
2422 #include "cpu.h"
2523
26−void ff_butterflies_fixed_sse2(int *av_restrict src0, int *av_restrict src1, int len);
24+void ff_butterflies_fixed_sse2(int *restrict src0, int *restrict src1, int len);
2725
2826 av_cold void ff_fixed_dsp_init_x86(AVFixedDSPContext *fdsp)
2927 {
libavutil/x86/float_dsp_init.c+1−4
@@ -16,13 +16,10 @@ · 15 unmodified lines
1616 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1717 */
1818
19−#include "config.h"
20−
2119 #include "libavutil/attributes.h"
2220 #include "libavutil/cpu.h"
2321 #include "libavutil/float_dsp.h"
2422 #include "cpu.h"
25−#include "asm.h"
2623
2724 void ff_vector_fmul_sse(float *dst, const float *src0, const float *src1,
2825 int len);
@@ -76,7 +73,7 @@ void ff_vector_fmul_reverse_avx2(float *dst, const float *src0, · 47 unmodified lines
7673 float ff_scalarproduct_float_sse(const float *v1, const float *v2, int order);
7774 float ff_scalarproduct_float_fma3(const float *v1, const float *v2, int order);
7875
79−void ff_butterflies_float_sse(float *av_restrict src0, float *av_restrict src1, int len);
76+void ff_butterflies_float_sse(float *restrict src0, float *restrict src1, int len);
8077
8178 av_cold void ff_float_dsp_init_x86(AVFloatDSPContext *fdsp)
8279 {
tests/checkasm/fixed_dsp.c+1−1
@@ -100,7 +100,7 @@ static void check_butterflies(const int *src0, const int *src1) · 99 unmodified lines
100100 LOCAL_ALIGNED_16(int, new0, [BUF_SIZE]);
101101 LOCAL_ALIGNED_16(int, new1, [BUF_SIZE]);
102102
103− declare_func(void, int *av_restrict src0, int *av_restrict src1, int len);
103+ declare_func(void, int *restrict src0, int *restrict src1, int len);
104104
105105 memcpy(ref0, src0, BUF_SIZE * sizeof(*src0));
106106 memcpy(ref1, src1, BUF_SIZE * sizeof(*src1));
tests/checkasm/float_dsp.c+1−3
@@ -16,8 +16,6 @@ · 15 unmodified lines
1616 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1717 */
1818
19−#include "config.h"
20−
2119 #include <float.h>
2220 #include <stdint.h>
2321
@@ -236,7 +234,7 @@ static void test_butterflies_float(const float *src0, const float *src1) · 212 unmodified lines
236234 LOCAL_ALIGNED_16(float, odst1, [LEN]);
237235 int i;
238236
239− declare_func(void, float *av_restrict src0, float *av_restrict src1,
237+ declare_func(void, float *restrict src0, float *restrict src1,
240238 int len);
241239
242240 memcpy(cdst, src0, LEN * sizeof(*src0));
tests/checkasm/pixblockdsp.c+1−1
@@ -65,7 +65,7 @@ · 64 unmodified lines
6565 #define check_diff_pixels(type, aligned) \
6666 do { \
6767 int i; \
68− declare_func(void, int16_t *av_restrict block, const uint8_t *s1, const uint8_t *s2, ptrdiff_t stride); \
68+ declare_func(void, int16_t *restrict block, const uint8_t *s1, const uint8_t *s2, ptrdiff_t stride); \
6969 \
7070 for (i = 0; i < BUF_UNITS; i++) { \
7171 int src_offset = i * 64 * sizeof(type) + (aligned ? 8 : 1) * i; \
tests/checkasm/vorbisdsp.c+1−3
@@ -16,8 +16,6 @@ · 15 unmodified lines
1616 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1717 */
1818
19−#include "config.h"
20−
2119 #include <float.h>
2220
2321 #include "libavutil/mem_internal.h"
@@ -48,7 +46,7 @@ static void test_inverse_coupling(void) · 24 unmodified lines
4846 LOCAL_ALIGNED_16(float, cdst1, [LEN]);
4947 LOCAL_ALIGNED_16(float, odst1, [LEN]);
5048
51− declare_func(void, float *av_restrict mag, float *av_restrict ang,
49+ declare_func(void, float *restrict mag, float *restrict ang,
5250 ptrdiff_t blocksize);
5351
5452 randomize_buffer(src0);

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