diff mbox series

[FFmpeg-devel,2/4] lavc/vp9dsp: use restrict qualifier for copy/avg MC

Message ID 20240722181201.24563-2-remi@remlab.net
State New
Headers show
Series [FFmpeg-devel,1/4] lavc/vp9dsp: restrict vertical intra pointers | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Rémi Denis-Courmont July 22, 2024, 6:11 p.m. UTC
Same as previous commit.
---
 libavcodec/vp9dsp_template.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/vp9dsp_template.c b/libavcodec/vp9dsp_template.c
index 5c4fb5d6e2..da3cc28e5e 100644
--- a/libavcodec/vp9dsp_template.c
+++ b/libavcodec/vp9dsp_template.c
@@ -1936,9 +1936,9 @@  static av_cold void vp9dsp_loopfilter_init(VP9DSPContext *dsp)
 
 #if BIT_DEPTH != 12
 
-static av_always_inline void copy_c(uint8_t *dst, ptrdiff_t dst_stride,
-                                    const uint8_t *src, ptrdiff_t src_stride,
-                                    int w, int h)
+static av_always_inline void copy_c(uint8_t *restrict dst, ptrdiff_t dst_stride,
+                                    const uint8_t *restrict src,
+                                    ptrdiff_t src_stride, int w, int h)
 {
     do {
         memcpy(dst, src, w * sizeof(pixel));
@@ -1948,9 +1948,9 @@  static av_always_inline void copy_c(uint8_t *dst, ptrdiff_t dst_stride,
     } while (--h);
 }
 
-static av_always_inline void avg_c(uint8_t *_dst, ptrdiff_t dst_stride,
-                                   const uint8_t *_src, ptrdiff_t src_stride,
-                                   int w, int h)
+static av_always_inline void avg_c(uint8_t *restrict _dst, ptrdiff_t dst_stride,
+                                   const uint8_t *restrict _src,
+                                   ptrdiff_t src_stride, int w, int h)
 {
     pixel *dst = (pixel *) _dst;
     const pixel *src = (const pixel *) _src;