From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 39B51453FA for ; Fri, 27 Oct 2023 19:26:15 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AD0F268CBD4; Fri, 27 Oct 2023 22:25:50 +0300 (EEST) Received: from ursule.remlab.net (vps-a2bccee9.vps.ovh.net [51.75.19.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4E6FC68CACA for ; Fri, 27 Oct 2023 22:25:41 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id E394DC01A9 for ; Fri, 27 Oct 2023 22:25:40 +0300 (EEST) From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= To: ffmpeg-devel@ffmpeg.org Date: Fri, 27 Oct 2023 22:25:38 +0300 Message-ID: <20231027192540.27373-4-remi@remlab.net> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 4/6] lavc/idctdsp: improve R-V V put_signed_pixels_clamped 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: This follows the same idea as with pixblockdsp, but applied at the other end, whilst writing data at the end of the function. --- libavcodec/riscv/idctdsp_rvv.S | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/libavcodec/riscv/idctdsp_rvv.S b/libavcodec/riscv/idctdsp_rvv.S index 06e64e6529..4ff72f48d2 100644 --- a/libavcodec/riscv/idctdsp_rvv.S +++ b/libavcodec/riscv/idctdsp_rvv.S @@ -42,24 +42,15 @@ func ff_put_pixels_clamped_rvv, zve32x ret endfunc -func ff_put_signed_pixels_clamped_rvv, zve32x - vsetivli zero, 8, e16, m1, ta, ma - vlseg8e16.v v24, (a0) - - li t1, 128 - vsetivli zero, 8, e8, mf2, ta, ma - vnclip.wi v16, v24, 0 - vnclip.wi v17, v25, 0 - vnclip.wi v18, v26, 0 - vnclip.wi v19, v27, 0 - vnclip.wi v20, v28, 0 - vnclip.wi v21, v29, 0 - vnclip.wi v22, v30, 0 - vnclip.wi v23, v31, 0 - vsetvli t0, zero, e8, m8, ta, ma - vadd.vx v16, v16, t1 - vsetivli zero, 8, e8, mf2, ta, ma - vssseg8e8.v v16, (a1), a2 +func ff_put_signed_pixels_clamped_rvv, zve64x + li t0, 8 * 8 + vsetvli zero, t0, e8, m4, ta, ma + vle16.v v24, (a0) + li t1, 128 + vnclip.wi v16, v24, 0 + vadd.vx v16, v16, t1 + vsetivli zero, 8, e8, mf2, ta, ma + vsse64.v v16, (a1), a2 ret endfunc -- 2.42.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".