From patchwork Wed Oct 4 18:34:23 2023 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: 44150 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4f21:b0:15d:8365:d4b8 with SMTP id gi33csp709670pzb; Wed, 4 Oct 2023 11:34:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFFdig+aN1pt6E63jyvPuYESFiknSPbzvQv/+lbFQR6dblKGN26gVJ5lSosxi0Q4hNlfu+2 X-Received: by 2002:aa7:c584:0:b0:531:2b7c:513a with SMTP id g4-20020aa7c584000000b005312b7c513amr2627985edq.17.1696444476347; Wed, 04 Oct 2023 11:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696444476; cv=none; d=google.com; s=arc-20160816; b=zeCwR0qpdBBiWYMQ0tOUtAQBKSpHR4eRptdA+/+4fXlQpJ2TyhUKJN0TpfSH4AHyzH MZUxbIrc7VvHB1TETwnYwgZKWhHF+MtwG5tQIRLhmglerlNOxmvKrs1emq6kCfRsFoQ3 BpeZumLNte4Dp2UwnJRYRjU0weEvYoWuzdHZEjBpLF9bvPpYT+vYqT4heOXDWLxEO4rS mCyeUn24SjDTB6al38K3M0kE9qgs+rHnpFCivcSfbFU8yhg38y7u1mwpn3HtzAfXCB9R rcL//9TM3rF6ZNkVekFveii2aGKjOM0LJfg95LGHbzifKbcsr3yOsbFltHFkNaqMm8u4 8hLw== 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:message-id:date:to:from :delivered-to; bh=8ig/OfNJtGRiDB3fo9g5/ttlTwCUprntrYG2IVK8DBI=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=c3uYCyM9d3Ccpi+LHp5yOqDVNde2cibSPxRP6YpwMde59RqLcmR8tOGpfdTZyPxeXn HelUeMwFmXJIcdX9/2q1Wdsf2fkzzX8i7HJ/+RVkLz69jFWx/ymqEv278MGSRs5oCg5F fadEz2GdHmbhhTpWjdPi0ZdOC2XjJ6xMnflbHeWDMYfBji4BC0VX4VrWwnumefKEemvt /KTCIHbfmRsd5iZc8tDVDKnvVmfUhsIl55OioM936DRUH/3PMkwk88C33udPuLtY4WN2 BuBzj2i3o344W22cy4FgKKnmLvnX+deVq6MkwtUgr5/zHakBraf28FYIvs1Ues3mWjWX p9sg== 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 v15-20020aa7cd4f000000b005385ee9a6fcsi154292edw.185.2023.10.04.11.34.34; Wed, 04 Oct 2023 11:34:36 -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 2C39168CAA9; Wed, 4 Oct 2023 21:34:31 +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 9CC9A68C9B3 for ; Wed, 4 Oct 2023 21:34:24 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id 176FCC006A for ; Wed, 4 Oct 2023 21:34:24 +0300 (EEST) From: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= To: ffmpeg-devel@ffmpeg.org Date: Wed, 4 Oct 2023 21:34:23 +0300 Message-ID: <20231004183423.24830-1-remi@remlab.net> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] lavu/float_dsp: adjust multipler in R-V V fmul_window 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: MkDm+WBNJKXb The gather index vector is only used as double-length (due to register pressure), so no need to initialise it for quad-length. Basically this matches the multiplier in the prologue to the the multipler in the loop. --- libavutil/riscv/float_dsp_rvv.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/riscv/float_dsp_rvv.S b/libavutil/riscv/float_dsp_rvv.S index 91b70bf148..a2f9488249 100644 --- a/libavutil/riscv/float_dsp_rvv.S +++ b/libavutil/riscv/float_dsp_rvv.S @@ -75,7 +75,7 @@ endfunc func ff_vector_fmul_window_rvv, zve32f // a0: dst, a1: src0, a2: src1, a3: window, a4: length - vsetvli t0, zero, e16, m4, ta, ma + vsetvli t0, zero, e16, m2, ta, ma sh2add a2, a4, a2 vid.v v0 sh3add t3, a4, a3