From patchwork Sat Sep 3 19:01:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= X-Patchwork-Id: 37633 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:139a:b0:8f:1db5:eae2 with SMTP id w26csp1715523pzh; Sat, 3 Sep 2022 12:01:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR5EBx/OYW/lWg3/h0wCCjYssPdQTFNFeAGUJthG4kkD8s6r8Dot70WeNRaM14F63ya66oWj X-Received: by 2002:a05:6402:1f06:b0:447:f6a0:2f71 with SMTP id b6-20020a0564021f0600b00447f6a02f71mr32506689edb.243.1662231718055; Sat, 03 Sep 2022 12:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662231718; cv=none; d=google.com; s=arc-20160816; b=vnsJzjQPFdqnF3xPwTw0FSor1du2MTv5Rys//tHDoVjy2VFa0t7VfF4zZmDK+K6rSk fKubIyV/jqjHEdAipKSsbN5xz9WkrZKzDYlWq+sQvBZD1tKzxe4YzbySZf9qrLQ5xARU 78F2R8HY+jYWBaLGtW4s0ija5po5XtqnuxCN2jUgBdIoq401ThLQVizl+YBdlRkYX24Q P+CISmvNe5+g/z7q1iuHLDSUCNlbEIxZUQMtn4C8xBTiumwRFbH8lKbq/b6rkeRFnP5x daivU40SSQuhvbyYK/RuwmbG8ia90Zslf7pf5FOLddcNWikkWm/lNZwOEBI6MM5XugUP EftA== 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=8RhDg9xG5fGxaxLiGbve15WachSyeORvhgvrVIn6zy4=; b=rzVvjc6lap7AL7Ofc1yiNxEyRaDa/MfjXlro+GvHmWwmAcMcJchkCjA4/NtGvNCAnH ACBqkh9p2NcZQ3+SNfMdeeRIQE8DcaWOD6tB7HHbWajr4m25I96hJPTYVc/8f90DQGJU CGcY9Ey8j1+8k1aP47GIOOwIwKkp6ODADJMnwbrnePfz5aG6EX3GmSUdqKe5s0/v7Pax XqfdppXterfVEXJpXiNKAQOhohr9RgT//5A+UUqxLVlRqCKrXyJNgYZIUwaOUid9/xSR OAEzLAq2ZBpf6WmSplIaDZnEymH8KaEXI2mIsZ+veG22JVQcBoxnIOu14ZABUp2pDJBB OO+Q== 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 di9-20020a170906730900b007414e55cae2si365093ejc.445.2022.09.03.12.01.57; Sat, 03 Sep 2022 12:01:58 -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 9141368B9EF; Sat, 3 Sep 2022 22:01:55 +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 6E76F68B9EF for ; Sat, 3 Sep 2022 22:01:48 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id 201DDC0029 for ; Sat, 3 Sep 2022 22:01:48 +0300 (EEST) From: remi@remlab.net To: ffmpeg-devel@ffmpeg.org Date: Sat, 3 Sep 2022 22:01:46 +0300 Message-Id: <20220903190147.196927-2-remi@remlab.net> X-Mailer: git-send-email 2.37.2 In-Reply-To: <12046336.O9o76ZdvQC@basile.remlab.net> References: <12046336.O9o76ZdvQC@basile.remlab.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/3] riscv: initial common header for assembler macros 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: 2XsY+j9UPKgJ From: RĂ©mi Denis-Courmont --- libavutil/riscv/asm.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 libavutil/riscv/asm.h diff --git a/libavutil/riscv/asm.h b/libavutil/riscv/asm.h new file mode 100644 index 0000000000..31001b8bdb --- /dev/null +++ b/libavutil/riscv/asm.h @@ -0,0 +1,33 @@ +/* + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + + .macro func sym + .text + .align 2 + + .global \sym + .type \sym, %function + \sym: + + .macro endfunc + .size \sym, . - \sym + .purgem endfunc + .endm + .endm