From patchwork Tue May 7 18:10:58 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: 48643 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9c99:b0:1af:836d:81b3 with SMTP id mj25csp80523pzb; Tue, 7 May 2024 11:11:27 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX0yKPoQpRWkJLbtw9L2fTpEtvk0raKWSvaNnSLvLDf0a4tUSR8Q5mCSSdFG0jtLd5UvbXbfCLkpPBWoP46vmyWVX+EgnyOECE/GA== X-Google-Smtp-Source: AGHT+IHphKG7d1mqMxI/dKDyBGJbgNzNok7hBC0iXizP2GEydLswVbi1B+bjLPuPmyG7ScKkE4P4 X-Received: by 2002:a19:f815:0:b0:51f:2f2:d66 with SMTP id 2adb3069b0e04-5217cf3b1d1mr184668e87.61.1715105487067; Tue, 07 May 2024 11:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715105487; cv=none; d=google.com; s=arc-20160816; b=AHrMbn1gitObzITQj4t4LhnF3ZuNmsKA6oIqqGXt/E3y53wgBt5jCqfWEv/Gd32U0H GlY7KBnLBBibBIcFtlIxO/8OE/IfoszWu3v2qINxXh2oF+bf6adUyQlPaTPTHHMT0+xJ nH5lMR/ux2Kyb9pIO0yZ6oUleO/ev4u5zBkxn58ZD3I+I5mWmIeRBAZDQ43ctKSTAbjZ mX23HwifMxfi1YJneTNiovW1FA8agu4XAMbMTys5BVbiqOveUhCXiUkI2vnJkQd7UHqH LUVuInsoS9xIKfQGuAYuC0YvMLktFjPiTwFwU6rtTjUmiM4JzdmslOFiB6pDURNWMyox 9m9g== 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=nrpsS3Y8N5/ugxeEyJBCMdgxzdnM1e7ljCcrZ1ZP1lM=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=K4R4Awkkr9o+8jpbPVNCKMPO66Mu+OXBsBmzZTTSINXN7gAEXASnDik6OOigr0hCg+ fYZe4XJ1jHiwakiOwe3jLsR7Y8HVxZ44PnM0hlQHT60ad0bTtg2qCVYSKjUibnHQI2nf FwMKV5rue40Hgb/fqtJFbJVInf0ZYopTybQC7ioOiymIfIO+lWJ+Gan4y1oukbGnRaeg DlL104yngkWbZVigkQQELjYmYgfPW3So3+5eO1UcrTXnuzqut5e4G0ZmhD/YAffyACBh YB8NofoWMuc+PdGH9QyuYQqMdhUt/7p1SNJ1HgyJpqMakF23kIBZ6tof428MLQ4UjPVE 8i5Q==; 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 m4-20020ac24284000000b0051f2f591527si3584378lfh.272.2024.05.07.11.11.26; Tue, 07 May 2024 11:11:27 -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 A8C0C68D6B3; Tue, 7 May 2024 21:11:09 +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 13A2968D5F8 for ; Tue, 7 May 2024 21:11:02 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id 3EB61C00C0 for ; Tue, 7 May 2024 21:11:01 +0300 (EEST) From: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= To: ffmpeg-devel@ffmpeg.org Date: Tue, 7 May 2024 21:10:58 +0300 Message-ID: <20240507181101.33385-1-remi@remlab.net> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/4] lavu/riscv: allow requesting a second extension 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: QjIqn6NwT96w --- libavutil/riscv/asm.S | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavutil/riscv/asm.S b/libavutil/riscv/asm.S index 0a9e2e0d3f..9d76ab5617 100644 --- a/libavutil/riscv/asm.S +++ b/libavutil/riscv/asm.S @@ -36,13 +36,16 @@ #define HWD #endif - .macro func sym, ext= + .macro func sym, ext1=, ext2= .text .align 2 .option push - .ifnb \ext - .option arch, +\ext + .ifnb \ext1 + .option arch, +\ext1 + .ifnb \ext2 + .option arch, +\ext2 + .endif .endif .global \sym