From patchwork Mon Jul 22 18:11:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= X-Patchwork-Id: 50680 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:a742:0:b0:482:c625:d099 with SMTP id f2csp2183056vqm; Mon, 22 Jul 2024 11:12:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWP+5Cw3kB64/XW6OUhm2o8LrgvTxrq+8IbwpfG8QZz0VmN29hoMizV53mLCGZ3KhkVSrevhQMEPgq9Dy4CCbDNxUh5ddAF3u0LpQ== X-Google-Smtp-Source: AGHT+IGbdtpE52W+0CFXUhRe83QkQKVxgjG+Ei3ROv0QMpgEOSkrBeU9rUrJ0b+QUCrN1JvYoIIM X-Received: by 2002:a05:6512:3b92:b0:52c:9d31:3f25 with SMTP id 2adb3069b0e04-52efb895b7bmr4167035e87.43.1721671944764; Mon, 22 Jul 2024 11:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721671944; cv=none; d=google.com; s=arc-20160816; b=olDWQqM/OdujrMMhJiSJPfLQhSONZ5m8oH3U3Fbhq/ZpzqpXrmCeoR0SR6U6g77rGG wvXN72gtG6q1R9UvVY48/6vAdgTUOwDF3cQryam6AlecnoZWQ4P8bd2eTPLABmHHYp+k mognFohXB/Sa77+1YhoWzEP7F4eoUxmtIiIpQNdyrEe2OzwKy/sOQJC3Hv1pKPuTL1l4 SEyVke+VRsEfFuQEID1scJwnQaeaeRd1EZfv8xuYEROiaOFh5CBcS+1OaImH8a3YP2sd 0n0tFha+5lnugHvTFUQgfanloAwufhMla+WgzmeYw480ZWWwRdLml8MaQBymik8tNf9v 2Dyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=gTF73yyGY533Yk22AkP3shC7zdC37fKHWSh0otiKc70=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=RzuWCajkbfX3DNe3rQ2XpCsnwngtHFgOHfvtCVaI0icO8lKeHgAAxhui6uSPmV2Lvh XKRcyRiacxxDuOIaoiA6+HyaI6GaDy6GGGKwylQLJrKzdr1v1uNKwo86C4O5vnT+h2Xn zZj8LyKMhJ8RmIPWiDV+CRBBOjbde8QTY7eOKmgtDHX5guGXMcAaJV5d6+KrKXYKddiL DmFDBt9T1xUogVBXhurcmiW04Ze+3cFtd357948FSzWBoVL+7vtsZ7bSdmwTTNiZ2wK8 8nmL066pij8ptTxcYGXy5KfIAIuCGuPd1pRRtr+3ENZofK5mWgLbwE8QItDpDp7PJL+m OI7w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 2adb3069b0e04-52f31fb1a72si593539e87.117.2024.07.22.11.12.23; Mon, 22 Jul 2024 11:12:24 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 08FC768D6E3; Mon, 22 Jul 2024 21:12:14 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from ursule.remlab.net (vps-a2bccee9.vps.ovh.net [51.75.19.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C189C68D67D for ; Mon, 22 Jul 2024 21:12:02 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id 31E4EC0186 for ; Mon, 22 Jul 2024 21:12:02 +0300 (EEST) From: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= To: ffmpeg-devel@ffmpeg.org Date: Mon, 22 Jul 2024 21:11:59 +0300 Message-ID: <20240722181201.24563-2-remi@remlab.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240722181201.24563-1-remi@remlab.net> References: <20240722181201.24563-1-remi@remlab.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/4] lavc/vp9dsp: use restrict qualifier for copy/avg MC X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 7J5zEbRqmd+V Same as previous commit. --- libavcodec/vp9dsp_template.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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;